Challenge: Convert Max-Heap to Min-Heap
Try to solve the Convert Max Heap to Min Heap problem.
Statement
Given an array representing a max heap, convert this into a min heap.
Constraints:
...
Try to solve the Convert Max Heap to Min Heap problem.
Given an array representing a max heap, convert this into a min heap.
Constraints: