Solving Permutation Sequence in go. Please try yourself first to solve the problem and submit your implementation to LeetCode before looking into solution.

Problem Description

  1. "123"
  2. "132"
  3. "213"
  4. "231"
  5. "312"
  6. "321"

Note:

Example 1:

Input: n = 3, k = 3
Output: "213"

Example 2:

Input: n = 4, k = 9
Output: "2314"

See the full details of the problem Permutation Sequence at LeetCode

Originally posted at: @github.com/halfrost/LeetCode-Go