摘要: 216. 组合总和 III LinkedList<Integer> path = new LinkedList<>(); List<List<Integer>> result = new ArrayList<>(); /** * @param k 规模 k 个数 * @param n 目标 和为 n 阅读全文
posted @ 2023-01-06 00:09 维萨斯 阅读(24) 评论(0) 推荐(0)
摘要: 第77题. 组合 class Solution { LinkedList<Integer> path =new LinkedList<>(); List<List<Integer>> result = new ArrayList<>(); public List<List<Integer>> com 阅读全文
posted @ 2023-01-06 00:05 维萨斯 阅读(23) 评论(0) 推荐(0)
摘要: 669. 修剪二叉搜索树 public TreeNode trimBST(TreeNode root, int low, int high) { if (root == null) { return null; } if (root.val < low) { return trimBST(root. 阅读全文
posted @ 2023-01-06 00:03 维萨斯 阅读(9) 评论(0) 推荐(0)