Problem 40 · Medium

Combination Sum II

Find all unique combinations from a list of candidates that add up to a target, using each candidate at most once. The visual sorts the candidates and backtracks through the choices, skipping repeats.

Open the interactive visualisation