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 ...
Given a max heap, convert it into a min heap.
Implement a function convertMax(List<int> maxHeap)
, which will convert a binary max heap into a binary min heap. Where maxHeap
is a ...