美文网首页
404. Sum of Left Leaves

404. Sum of Left Leaves

作者: 我是你的果果呀 | 来源:发表于2016-12-04 06:37 被阅读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.

相关文章

网友评论

      本文标题:404. Sum of Left Leaves

      本文链接:https://www.haomeiwen.com/subject/qsqhmttx.html