Python solution
\ndef canFormArray(self, arr: List[int], pieces: List[List[int]]) -> bool:\n        for piece in pieces:\n            if piece[0] not in arr:\n                r
```\ndef canFormArray(self, arr: List[int], pieces: List[List[int]]) -> bool:\n        for piece in pieces:\n            if piece[0] not in arr:\n                return False\n        pieces.sort(key = lambda a: arr.index(a[0]))\n        ans = []\n        for piece in pieces:\n            ans += piece\n        return True if ans == arr else False\n```\n\nWould really appreciate your suggestions on improving my solution.
['Python', 'Python3']