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.
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Abhishek Bakhla
il 25 Ott 2019
Modificato: Abhishek Bakhla
il 29 Ott 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 Commenti
Risposta accettata
Dinesh Yadav
il 29 Ott 2019
Hi, I am attaching a code file for the above question. Hope it helps.
1 Commento
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Matrix Indexing in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!