摘要: Find the sum of all left leaves in a given binary tree. Example: 这道题让我们求一棵二叉树的所有左子叶的和,那么看到这道题我们知道这肯定是考二叉树的遍历问题,那么最简洁的写法肯定是用递归,由于我们只需要累加左子叶之和,那么我们在进入递归 阅读全文
posted @ 2016-09-30 13:40 Grandyang 阅读(9989) 评论(1) 推荐(0)
Fork me on GitHub