Path sum in binary tree equal to x
Filed under HashedIn
The question
Given a binary tree and an integer x, find a path in the tree such that the sum of the node values along the path equals x.
No write-up yet. Related questions below have one.
Related HashedIn questions
Collected from public candidate posts and coding forums. Updated Nov 2026.