Problem 60 · Hard

Permutation Sequence

Find the k-th arrangement of the digits one through n in lexicographic order. The visual uses factorial block sizes to choose each digit in turn and removes it from the pool.

Open the interactive visualisation