Max Area of Island — Graphs: BFS/DFS

Report the size of the largest linked patch of land on a coastal grid, or zero when the map has no land.

Graphs: BFS/DFS · Easy

More in Graphs: BFS/DFS

All algorithm problems