New
ML System Design & SQL tracks just landed
See what's new
×
Question Bank
Pricing
Blog
Forum
HOT
JobRadar
NEW
Referral
Description
Solution
Discussion
Submissions
Ask AI
Question Bank
Tesla
Coding Question
AI Insights
Quick Summary
Find the root-to-leaf path in a binary tree with the smallest sum of node values.
Return the sequence of node values along that minimum sum path.
Correctly handle negative values and tie-breaking scenarios.
What This Tests
Recursive tree traversal (Depth-First Search)
Path state management and backtracking mechanics
Tracking and updating global minimums during recursion
Identifying leaf node base cases
Common Patterns
DFS/BFS
Backtracking
Collapse
Hint 1
Hint 2
What Interviewers May Ask Next
Accepted
1.2k
/2.4k
Acceptance Rate
48.8%
Ask AI Assistant
Ask AI Assistant
Ask me anything about this coding question!
Qwen
Qwen3.6-Flash
0/2000
Auto
Debug
Run
Submit
Test Cases
Input
root =
Output
Expected