0

Can someone please fix this code?

Q: To design an algorithm to fix elements of array and permutes the remaining numbers using an efficient heap sorting technique Basically, I have to show all possible permutation of an array by using heapsort. I tried swapping parent and child element but there seems some mistake. Can someone please fix this code? https://code.sololearn.com/c9KQIUBUb7yE/?ref=app

18th May 2020, 1:36 AM
Pakeeza Saleem
Pakeeza Saleem - avatar
1 Odpowiedź