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.
![](https://img.haomeiwen.com/i3805437/002686076d90517e.png)
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
网友评论