Skip to main content
Max Area of Island | AlgoCracked
AlgoCracked
ProblemsMax Area of Island
Medium71.0% acceptance
Blind75ArrayDfsBfsUnion Find

Max Area of Island

Given an m × n binary grid of 0 s (water) and 1 s (land), return the area of the largest island . An island is a group of 1 cells connected horizontally or vertically; the area is the number of land cells it contains. If there is no land, return 0 . Input format Input is [grid] where grid is a 2-D array of integers, e.g. [[[0,1],[1,1]]] .

Loading workspace…