Permutations and combinations, the various ways in which objects from a set may be selected, generally without replacement, to form subsets. This selection of subsets is called a permutation when the ...
Given n and k, return the kth permutation sequence. Note: Given n will be between 1 and 9 inclusive.