Whatnot logoWhatnot
CodingMembers

Counting Connected Land Regions in a Binary Grid

Members only

A grid-based graph question on counting separate land masses in a map of land and water. The core challenge is making sure each region is counted exactly once without redoing work, and the conversation tends to branch into practical concerns about large inputs and memory.

SWE
medium
graph
grid
dfs
bfs
python
Frequency
Single report
Last asked
2026-10-22
Stage
phone-screen · onsite-coding

Members get

  • Full problem statement
  • Known variants to clarify
  • 3 progressive hints
  • Step-by-step approach
  • Full solution with code
  • 6 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...