program to sorting of user given data using heap sort method.
Answers
Answered by
2
Answer:
hope it will help u
Explanation:
Build a max/min heap using Heapify() from the input data. At this point, the largest/smallest item is stored at the root of the heap. Replace it with the last item of the heap followed by reducing the size of heap by 1. Finally, heapify the root of tree
Similar questions