intermediate8 min · Oct 1, 2026
Number of Islands Explained: Tracing DFS & BFS on a 4×5 Grid
Trace DFS and BFS flood fill on a 4×5 grid with two land blobs. Master the spatial counting dilemma and graph component mental models.
dsadfsmatrixalgorithmsgraph-theory
Read article →