Longest Path Root-to-Leaf with Target Sum
Filed under Samsung
The question
Find the length of the longest path from the root to a leaf node where the sum of nodes along that path equals a given target value.
No write-up yet. Related questions below have one.
Related Samsung questions
Collected from public candidate posts and coding forums. Updated Nov 2026.