Mental Model
We find groups of connected land cells in a grid by exploring neighbors until all connected parts are visited.
Analogy: Imagine a map with islands made of connected land squares. We walk around each island fully before counting it, like exploring a forest patch completely before moving to the next.
Grid example: 0 1 0 0 1 1 0 1 0 0 1 1 1 = land, 0 = water We want to count how many separate islands (groups of 1s) exist.
