C3 AICodingMembers
Count Land Clusters in a Binary Grid
Members only
A phone-screen coding question on a two-dimensional map of land and water, asking how many separate land masses it contains. The challenge is choosing a clean way to explore each region once and keeping the extra memory small.
SWE
medium
graph
grid
dfs
Frequency
Single report
Last asked
—
Stage
phone-screen
Members get
- Full problem statement
- 3 progressive hints
- Step-by-step approach
- Full solution with code
- 3 common pitfalls
- 4 talking points
- 5 follow-up questions with answer directions
- Preparation drills
Log in to continue reading the full content
Comments
Sign in to join the discussion
Loading...
