MaxHeap
This program creates a max heap from a regular array.
There are methods in the maxHeap which also prints the max Heap.
We can also find three largest values of the array –
For that, sorting of the array is not required.
This program creates a max heap from a regular array.
There are methods in the maxHeap which also prints the max Heap.
We can also find three largest values of the array –
For that, sorting of the array is not required.