Challenge 1: Convert a Max-Heap to a 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:
maxheap.length
...
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:
maxheap.length
...