DIY: Max Area of an Island

Solve the interview question "Max Area of an Island", in this lesson.

Problem statement

Given an m x n binary matrix grid containing 0s and 1s, you have to return the maximum contiguous area that is occupied by an island.

Each cell in ...

Access this course and 1400+ top-rated courses and projects.