404. Sum of Left Leaves

2016-12-04  本文已影响0人  我是你的果果呀

Find the sum of all left leaves in a given binary tree.
Example:

  3 
  / \
 9  20
     /  \ 
    15  7
There are two left leaves in the binary tree, with values9and15respectively. Return24.

上一篇 下一篇

猜你喜欢

热点阅读