leetcode-404. 左叶子之和

class Solution(object): def sumOfLeftLeaves(self, root): """ :type root: TreeNode :rtype: int """ if not root: return 0 if root.left and not root.left.left and
相关文章
相关标签/搜索