2020年6月7日

[LeetCode]404. 左叶子之和(递归)、938. 二叉搜索树的范围和(递归)(BST)

摘要: ###题目 404. 左叶子之和 如题 ###题解 类似树的遍历的递归 注意一定要是叶子结点 ###代码 class Solution { public int sumOfLeftLeaves(TreeNode root) { if(root == null){return 0;} int sum 阅读全文

posted @ 2020-06-07 19:18 coding_gaga 阅读(69) 评论(0) 推荐(0)

导航