Practice Problem

Max Area of Island

Difficulty: Medium

Given a binary grid, find the maximum area of an island (connected group of 1s connected 4-directionally).