Dev Ops in 30 Days

39. Combination Sum - LeetCode

The following is my approach for 39. Combination Sum .

The idea is simple, just do a backtracking:
check every combination of the numbers, if any sum = target, save the sum.

content

Comments