CodingReported in a candidate post, Oct 2020
Number of islands in a grid
Filed under HashedIn
The question
Given a grid of 0s (water) and 1s (land), count the number of islands using DFS.
No write-up yet. Related questions below have one.
Related HashedIn questions
Collected from public candidate posts and coding forums. Updated Nov 2026.