Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
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
Late October, 2025
Microsoft
Mid-level
Early May, 2025
Meta
Mid-level
Late August, 2024
Amazon
Intern
Path Sum II (LeetCode 113)
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.