leetcode513找树左下角的值(JAVA实现)

实际上也是广度优先搜索,不过有了一点改变,先右在左,等于镜像的广度优先遍历 /** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) { val = x
相关文章
相关标签/搜索