会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Figure at a Window
管理
2022年7月11日
LeetCode39. Combination Sum
摘要: 题意 给一个序列以及一个目标值, 使用序列中的数相加和为目标值, 求一共有多少种组合; 每个数可选取多次 解法 递归 + 回溯 + 剪枝 代码 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)