Skip to main content
All Questions

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 courses

Course

Software Engineering Interview Prep

Land your dream software engineering role at Google, Amazon, Microsoft, Meta, Apple, and other top companies. Learn from mock interviews, frameworks, and advice from senior candidates—practice data structures, algorithms, system design, people management, behavioral interviews, and more.

Course

System Design Interviews

Learn how to answer the latest system design questions across product, infrastructure, and AI domains. Features in-depth video examples, written breakdowns, and helpful reference patterns. Watch senior engineers and managers answer these questions in mock interview videos.