Flatten Once
Medium · Slices
Flatten a [][]int into one []int, keeping the order of rows then items.
Write Flatten(groups) that returns one slice. Empty input becomes an empty slice.
Next: Binary Search
Medium · Slices
Flatten a [][]int into one []int, keeping the order of rows then items.
Write Flatten(groups) that returns one slice. Empty input becomes an empty slice.
Next: Binary Search