Max Area of Island
Asked at Meta · Coding Questions · Difficulty: Medium
Given a 2D grid of `0`s (water) and `1`s (land), an island is a group of `1`s connected 4-directionally. Return the area (cell count) of the largest island, or `0` if there is none.
Loading the problem…