← Questions

Max area of island

0
AmazonMetaCodingLast asked Mar 2026

Given a binary matrix, return the area of the largest island: a group of 1 cells connected up, down, left or right (diagonals don't connect).

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding