#Skip to menu

Lexicographic permutations

First read the problem description.

Source code of the solution(s):