Combinations — Interactive Visualizer

Find all possible combinations of k numbers out of the range [1, n].