- Get link
- X
- Other Apps
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.
The idea is simple, just do a backtracking:
check every combination of the numbers, if any sum = target, save the sum.
content
- Get link
- X
- Other Apps
Comments
Post a Comment