Nextdoor logoNextdoor
CodingMembers

Flatten Nested Comment Tree

Members only

A data-structures warm-up from Nextdoor's phone screen, framed around posts and their threaded replies. The base task is quick; the value is in the follow-ups, which change both the constraints and the implementation style.

SWE
dfs
easy
recursion
tree-traversal
Frequency
Single report
Last asked
2026-04-09
Stage
phone-screen

Members get

  • Full problem statement
  • Step-by-step approach
  • 2 common pitfalls
  • 2 follow-up questions with answer directions
  • Preparation drills

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...