Problem

Return 1D row-major copy of grid.

Examples

  • flattenRowMajor([[1, 2], [3, 4]]) -> [1, 2, 3, 4]
Compile and test (Ctrl+Enter)