Permutation Sequence

So a few days ago I attempted to do Leetcode 60, permutation sequence. The problem seems simple enough, it goes something like the following. Given an integer n and an integer k, return the value of the kth permutation in the sequence of sorted permutations from [1…n]. So for example, if n and k are… Continue reading Permutation Sequence