Permutations of size k. Modify Permutations from the previous exercise so that it takes two command-line arguments n and k, and prints all P(n, k) = n! / (nk)! permutations that contain exactly k of the n elements. Below is the desired output when k = 2 and n = 4 (again, do not worry about the order):
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here