Combination Sum

Medium

📝 Description

Find all unique combinations where candidate numbers sum to target

Input Format

Array of candidates and target integer

Output Format

List of unique combinations

Constraints

1 ≤ candidates.length ≤ 30

🔍 Sample Input

[2,3,6,7]
7
            

✅ Sample Output

[[2,2,3],[7]]
            

Code Editor

Please login to run and submit code.

Shortcuts: Ctrl+Enter to submit, Ctrl+Shift+R to run