Home
Topics
Practice
Roadmap
DSA Tracker
Code Editor
Tech Blogs
More
Sign in
Get started
Loading question...
Feedback
Permutation Sequence
Hard
00:00
0 users online
Share
Description
Solution
Submissions
Discussion
Find kth permutation of numbers 1 to n.
Sample Input:
3, 3
Sample Output:
"213"
Hints
Hint 1
Use factorial to determine positions
Hint 2
Build permutation digit by digit
Hint 3
Adjust k after each selection
Code Editor
Reset
Run
Save
Loading...