The numbers 1 to n form n! permutations in lexicographic order. Return the kth permutation, using factorials rather than enumerating them.
Practise this challenge
All coding challenges