摘要: List<List<Integer>> res = new ArrayList<>(); public List<List<Integer>> pathSum(TreeNode root, int sum) { List<Integer> list = new ArrayList<>(); trac 阅读全文
posted @ 2020-08-18 11:25 欣姐姐 阅读(120) 评论(0) 推荐(0)
摘要: class Solution { public boolean verifyPostorder(int[] postorder) { int n = postorder.length; if(n<=1) return true; int j = n-1; for(;j>=0;j--){ if(pos 阅读全文
posted @ 2020-08-18 09:57 欣姐姐 阅读(112) 评论(0) 推荐(0)