Problem

Return grid[0].length (non-empty grid).

Examples

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