C++ | 4-lines
\nclass Solution {\npublic:\n    bool canFormArray(vector<int>& A, vector<vector<int>>& P) {\n        for(vector v: P){\n            auto it = search(A.begin(),
```\nclass Solution {\npublic:\n    bool canFormArray(vector<int>& A, vector<vector<int>>& P) {\n        for(vector v: P){\n            auto it = search(A.begin(),A.end(),v.begin(),v.end());\n            if(it==A.end()) return 0;\n        }\n        return 1;\n    }\n};\n```
[]