Given a 0/1 grid, return the area (cell count) of the largest island, or 0 if there is no land. Islands connect 4-directionally.
Input
r cOutput: the maximum island area.
4 5 0 1 0 0 1 1 1 0 1 1 0 0 0 1 1 0 0 0 0 0
5
The right-side island has 5 cells.
1 1 0
0
Run your code against the sample tests, or Submit to run the full suite.