GoalScope — combination_sum (Qwen2.5-Coder-32B-Instruct) — hover a token to see the patched verbalization
↵
<code>↵
def combination_sum(candidates, target):↵
"""Find all unique combinations in candidates where the candidate numbers sum to target."""↵
def backtrack(start, path, target):↵
if target == 0:↵
result.append(path)↵
return↵
if target < 0:↵
return↵
for i in range(start, len(candidates)):↵
backtrack(i, path + [candidates[i]], target - candidates[i])↵
↵
result = []↵
candidates.sort()↵
backtrack(0, [], target)↵
return result↵
</code>