LeetCode #695: Max Area of Island
You're given an binary grid where is land and is water. Find the area of the largest island. An island is a group of s connected horizontally or vertically.
Example: A grid with scattered islands. Return the size of the largest one.
Constraints: Grid up to .
Try solving it before reading the hints.