摘要: 这道题其实本身没有什么难度,就是层序遍历保留每一层最后一个值。但是以什么方式来区分每一层还是有不同思路的。 public static List<Integer> rightSideView(TreeNode root) { if (root == null) { return new ArrayL 阅读全文
posted @ 2019-11-10 10:50 小小小小的我 阅读(308) 评论(0) 推荐(0) 编辑