Kth Permutation Sequence
Print the k-th permutation (1-indexed, lexicographic order) of the numbers 1..n as a string.
Constraints
1 <= n <= 9 1 <= k <= n!
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.