backtrack
that takes the remaining target (remain
), the current combination (comb
), and the starting index (start
).remain
is zero, add the current combination to the result list, as it satisfies the target sum.remain
is negative, return, as the current combination exceeds the target.start
index.backtrack
with the updated remain
and start
.