I have written the program for heap implementation but when I am printing the minHeap,it is not coming in the correct order(it should be sorted). What’s wrong in this ?
my code link is:
https://ide.codingblocks.com/s/57036
Heap Class Implementation
https://ide.codingblocks.com/s/60152
line number 26 do not required,if you are changing the minIndex sometime left get swap by right
Hey Avanik, as you are not responding to this thread, I am marking your doubt as Resolved for now.