Problem 77 · Medium

Combinations

List every group of k numbers chosen from one to n. The visual builds each group by adding numbers and backtracking when a branch is finished.

Open the interactive visualisation