SP14819 PERMTGEN - Permutation Generator
Description
Hasan Jaddouh has invented a new algorithm for generating permutations this algorithm takes an array with length N as input and generate a permutation with length N from this array.
the array must satsify (1
Input Format
first line contains integer N (1
Output Format
Output N integers separated by spaces, the new array after applying Hasan Jaddouh's algorithm