摘要:
216. Combination Sum III 保证subset.size( ) == k && target == 0的时候结束DFS subset.size( ) > k || target < 0返回。 class Solution { public List<List<Integer>> 阅读全文
摘要:
39. Combination Sum Combination,组合问题用DFS罗列全部的答案。 class Solution { public List<List<Integer>> combinationSum(int[] candidates, int target) { List<List< 阅读全文