摘要: Find the sum of all left leaves in a given binary tree. Example: 题目大意: 求所有左叶子节点的和。 理 解: 判断某个节点是否位左叶子节点:当前节点的左子节点非空,左子节点左右子树为空。 递归根节点的左右子树,累加所有左子节点的和。 阅读全文
posted @ 2019-06-20 17:11 lpomeloz 阅读(99) 评论(0) 推荐(0) 编辑