News

n_list = [i for i in range(1, n+1)] return self.helper(n, k-1, n_list, factorials) def helper(self, n, k, n_list, factorials): ...
Given n and k, return the kth permutation sequence. Note: Given n will be between 1 and 9 inclusive.