Example 1
Example 2
Example 3
1 <= pieces.length <= arr.length <= 100sum(pieces[i].length) == arr.length1 <= pieces[i].length <= arr.length1 <= arr[i], pieces[i][j] <= 100The integers in arr are distinct.The integers in pieces are distinct (i.e., If we flatten pieces in a 1D array, all the integers in this array are distinct).Example 1
Example 2
Example 3
1 <= pieces.length <= arr.length <= 100sum(pieces[i].length) == arr.length1 <= pieces[i].length <= arr.length1 <= arr[i], pieces[i][j] <= 100The integers in arr are distinct.The integers in pieces are distinct (i.e., If we flatten pieces in a 1D array, all the integers in this array are distinct).