Challenge 1: Convert Max-Heap to Min-Heap
Given a max heap, convert it into a min heap.
Problem statement
Implement a function convertMax(List<int> maxHeap)
, which will convert a binary max heap into a binary min heap. Where maxHeap
is a ...
Access this course and 1400+ top-rated courses and projects.