Technical2026-09-30
Find the number of islands in a 2D binary matrix.
AI-Expanded — inferred from the question title, not from the original candidate report
Given a 2D grid of '1's (land) and '0's (water), count the total number of distinct islands formed by connecting adjacent land cells horizontally or vertically. An island is surrounded by water and is formed by connecting adjacent lands horizontally or vertically; you may assume all four edges of the grid are surrounded by water.
Context & Summary
The candidate was asked to solve a graph-based problem involving matrix traversal.
💻 Coding practice works best on desktop.
Code editors are too cramped on mobile screens.
Loading editor...
Loading test cases...
Interview Digest