Problem

Return grid.length.

Examples

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