Problem Solution First digit changes after (n-1)! permutations, second digit changes after (n-2)! and so on... Dividing k by n gives the first digit. Take out that number from the list of 1 to n, and k is the remainder of k/(n-1)! Repeat with n-2 https://leetcode.com/problems/permutation-sequence/discuss/696782/Python3-Solution-Explained-With-a-Tip-For-Faster-Execution-or-Beats-99.8 class Soluti..