Skip to content

Latest commit

 

History

History
 
 

135

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

This question was asked by Apple.

Given a binary tree, find a minimum path sum from root to a leaf.

For example, the minimum path in this tree is [10, 5, 1, -1], which has sum 15.

  10
 /  \
5    5
 \     \
   2    1
       /
     -1