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
相關文章
相關標籤/搜索