Root to node path sum equals given number
Filed under Housing.com
The question
Find a root-to-node path in a tree whose sum equals a given number with the least space complexity.
No write-up yet. Related questions below have one.
Related Housing.com questions
Collected from public candidate posts and coding forums. Updated Nov 2026.