Problem 1286 · Medium
Generate combinations in lexicographic order by advancing the rightmost position that can still move.
Open the interactive visualisation