作品分享
问答交流
发现
任务
客服工单
输入:candidates = [2,3,6,7], target = 7 输出:[[2,2,3],[7]] 表明: 2 和 3 可以形成一组候选,2 + 2 + 3 = 7 。留意 2 可以使用多次。 7 也是一个候选, 7 = 7 。 仅有这两种组合。
输入: candidates = [2,3,5], target = 8 输出: [[2,2,2,2],[2,3,3],[3,5]]
输入: candidates = [2], target = 1 输出: []
举报
本版积分规则 回帖后跳转到最后一页
Powered by CangBaoKu v1.0 小黑屋藏宝库It社区( 冀ICP备14008649号 )
GMT+8, 2025-8-2 06:37, Processed in 0.126848 second(s), 32 queries.© 2003-2025 cbk Team.