题目
当当喵 way
dfs遍历 + isLeft来标注当前节点状态即可
1 | /** |
References
https://leetcode-cn.com/problems/sum-of-left-leaves/solution/chao-ji-rong-yi-li-jie-qi-shi-he-qiu-quan-lu-jing-/
Just a Blog
1 | /** |
https://leetcode-cn.com/problems/sum-of-left-leaves/solution/chao-ji-rong-yi-li-jie-qi-shi-he-qiu-quan-lu-jing-/