Islands in a satellite image grid.
Unlock detailed company stats for this questionUpgrade
Given a satellite image as an N x M grid where X is land and . is water, plus a coordinate (r, c), solve the island problem (Number of Islands style) using BFS.
Follow-up: identify/count lakes enclosed by islands; likely intended a boundary-based flood fill.
Expect follow-ups like
- Identify/count the lakes enclosed by islands.
Format · Virtual technical round.
Community answers
No answers contributed by the community yet.
Related questions
Count the number of islands in a grid.Related courses

Course

Course
Course
