#1764
Form Array by Concatenating Subarrays of Another Array
specialist · 810 · lc medium +31 · verified · 54.7% accepted · 351 likes · top 47%
Description
You are given a 2D integer array groups of length n and an integer array nums. Determine whether you can choose n non-overlapping subarrays from nums in order such that the ith equals groups[i]. Return true if possible, false otherwise.
Code
1
2
3