Page 1 of 1

What is the use of sort_heap() function in heap?

Posted: Wed Jul 13, 2022 7:53 pm
by answerhappygod
a) To sort the elements in the heap into descending order
b) To sort the elements in the heap into ascending order
c) To sort the first half of the heap
d) To sort the second half of the heap