Write a program that fetches the minimum elements and sorts them in non-decreasing order from
binary max-heap (H). Make sure the heap property of the binary max-heap(H) will not be violated throughout the process.
Write a program that fetches the minimum elements and sorts them in non-decreasing order from
binary max-heap (H). Make sure the heap property of the binary max-heap(H) will not be violated throughout the process.