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 ...
Access this course and 1500+ top-rated courses and projects.