Find kth Permutation

Given a set of 'n' elements, find their kth permutation.

Statement

Given two numbers nn and kk, find kth^{th} permutation of nn. For n=3n = 3, all permutations are (with ordering):

Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy