摘要: 题意 给一个序列以及一个目标值, 使用序列中的数相加和为目标值, 求一共有多少种组合; 每个数可选取多次 解法 递归 + 回溯 + 剪枝 代码 vector<vector<int>> ans; void dfs(vector<int> res, int target, vector<int> can 阅读全文
posted @ 2022-07-11 23:16 Figure_at_a_Window 阅读(25) 评论(0) 推荐(0)