← Google questions
CodingHard

Island maximum area and continent-lake analysis

Filed under Google

Given a 2D matrix of 1s (land) and 0s (water), find the island with the maximum area. Separately, calculate the area of the continent (connected land) that contains the largest lake (connected water).

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Google questions

Collected from public candidate posts and coding forums. Updated Nov 2026.