Challenge: Convert Max Heap to Min Heap
Try to solve the Convert Max Heap to Min Heap problem.
We'll cover the following
Statement
Given a list representing a max heap, convert this into a min heap.
Constraints:
maxheap.length
maxheap[i]
Examples
Level up your interview prep. Join Educative to access 80+ hands-on prep courses.