[Python] Faster than 99%
Really simple, and breaks early increasing efficiency\n\n\nclass Solution:\n    def canFormArray(self, arr: List[int], pieces: List[List[int]]) -> bool:\n      
Really simple, and breaks early increasing efficiency\n\n```\nclass Solution:\n    def canFormArray(self, arr: List[int], pieces: List[List[int]]) -> bool:\n        p = {val[0]: val for val in pieces}\n        \n        i = 0\n        while i < len(arr):\n            if arr[i] in p:\n                for val in p[arr[i]]:\n                    if i == len(arr) or arr[i] != val:\n                        return False\n                    i += 1\n            else:\n                return False\n        \n        return True\n```
['Python', 'Python3']