404. Sum of Left Leaves

题目描述 方法思路 很简单的题目可以递归,也可以迭代 Approach1:iterative class Solution { public int sumOfLeftLeaves(TreeNode root) { if(root == null) return 0; int ans = 0; Stack<TreeNode> stack = new Stack<Tr
相关文章
相关标签/搜索