DoorDashCodingMembers
Menu Tree Diff — Count Changed Nodes
Members only
DoorDash phone-screen coding round that compares two versions of a restaurant menu modeled as a tree and counts how many nodes changed between the old and new version. The trap most candidates miss is pinning down what "changed" actually means — added nodes, removed nodes, edited values, and nodes moved to a new parent are each counted differently — so nailing the diff semantics with the interviewer is most of the battle. Reported in a recent SWE screen.
SWE
tree
recursion
hashmap
medium
Frequency
Single report
Last asked
2026-01-30
Stage
phone-screen
Log in to continue reading the full content
Comments
Sign in to join the discussion
Loading...
