2022年10月24日

回溯剪枝

摘要: ##39. 组合总和 & 40. 组合总和 II 前者数组中的数字可以重复, 后者不可以; 前者数组中无重复数字, 后者有; 前者不需要排序,后者需要; 前者: dfs(candidates, i, target - candidates[i]); 后者: dfs(candidates, i + 1 阅读全文

posted @ 2022-10-24 12:02 xtdnn 阅读(22) 评论(0) 推荐(0)

导航