Search
⌘K
Leetcode 113. Path Sum II
Find all root-to-leaf paths in a binary tree whose node values sum to targetSum, returning each path as a list of values. This is solved with DFS/backtracking that accumulates the running sum (note values may be negative and tree size ≤ 5000).
Asked at:
Amazon
Meta
Microsoft
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Early May, 2026
Amazon
Intern
Late October, 2025
Microsoft
Mid-level
Early May, 2025
Meta
Mid-level
Hello Interview Premium
Your account is free and you can post anonymously if you choose.