#Skip to menu

24 - Lexicographic permutations

First read the problem description.

Source code of the solution(s):