Leetcode 695. Max Area of Island
Given an m×n binary grid, find the maximum area (number of cells) of a 4-directionally connected component of 1s (an island), returning 0 if none exist. This is a standard grid connected-components / flood-fill problem (solvable with DFS/BFS/Union-Find) with m,n ≤ 50.
Asked at:

Amazon
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
Mid December, 2024

Amazon
Mid-level
Find the max area of an island with a given starting point and obstacles that cannot be passed
Your account is free and you can post anonymously if you choose.