Skip to main content
mediumBlind 75

Combination Sum

Given an array of distinct integers and a target Return all unique combinations that sum to the target Each number can be used unlimited times Example: candidates = [2,3,6,7], target = 7 => [[2,2,3],[7]]

This one has lots of possibilities, and it's really testing whether you can explore them systematically. Interviewers love it because it reveals your structured exploration and your edge-case discipline. If you can explain your pruning, this stops feeling like brute force.

Arrays & HashingBacktracking

Meet Coco

Coco is an AI study partner, not a person. She listens while you explain your code, asks what a line does and never hands you the fix. Typing with Coco is free when you sign in, up to a daily limit. Talking with her out loud comes with the $79 pack. Anyone can open the editor and run their code.

1Find All Combinations Summing to Targetmedium
Based onLeetCode