## Change the Array into Permutation of Numbers From 1 to N

In this problem, we have given an array A of n elements. We need to change the array into a permutation of numbers from 1 to n using minimum replacements in the array. Example Input: 2 2 3 3 Output: 2 1 3 4 Input : 3 2 1 7 …

Read moreChange the Array into Permutation of Numbers From 1 to N