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 an array representing a max heap, convert this into a min heap.
Constraints:
maxheap.length
maxheap[i]
Examples
Create a free account to view this lesson.
Continue your learning journey with a 14-day free trial.
By signing up, you agree to Educative's Terms of Service and Privacy Policy