Given two natural numbers and , print all possible -length permutations of integers from to in lexicographic order.
Two natural numbers and (1 \leq k \leq n \leq 8).
Print all possible -length permutations of integers from to in lexicographic order. Each permutation should be displayed on a separate line.
Beispiel 1