Find the largest connected region of 1s in a binary grid.
Constraints
Example
['>>> max_area_of_island([[0,0,1,0,0],\n... [1,1,1,0,0],\n... [0,1,0,0,0],\n... [1,1,0,0,0]])\n5', '>>> max_area_of_island([[0,0,0],\n... [0,0,0])\n0', '>>> max_area_of_island([[]])\n0']
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints