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.
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Abhishek Bakhla
le 25 Oct 2019
Modifié(e) : Abhishek Bakhla
le 29 Oct 2019
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.
0 commentaires
Réponse acceptée
Dinesh Yadav
le 29 Oct 2019
Hi, I am attaching a code file for the above question. Hope it helps.
1 commentaire
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Matrix Indexing dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!