Skip to content

Latest commit

 

History

History
14 lines (12 loc) · 244 Bytes

README.md

File metadata and controls

14 lines (12 loc) · 244 Bytes

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