given an array of Integers,sort it by building maximum or minimum heap
Answers
Answered by
0
Answer:
Heap sort is a comparison-based sorting technique based on Binary Heap data structure. It is similar to selection sort where we first find the minimum element and place the minimum element at the beginning. We repeat the same process for the remaining elements.
Explanation:
Similar questions