随笔分类 - LeetCode
LeetCode39.组合总和II
摘要:代码(未剪枝) class Solution { List<List<Integer>> res = new ArrayList<>(); List<Integer> path = new ArrayList<>(); public List<List<Integer>> combinationSu
LeetCode216.组合总数III
摘要:代码1(自己) class Solution { List<List<Integer>> res = new ArrayList<>(); List<Integer> path = new ArrayList<>(); public List<List<Integer>> combinationSu
LeetCode77.组合
摘要:代码 class Solution { List<List<Integer>> res = new ArrayList<>(); List<Integer> path = new ArrayList<>(); public List<List<Integer>> combine(int n, int