Adds a new element to the max-heap while maintaining the heap property. The element is initially added at the end and then bubbled up as needed.
The type of max-heap array.
The max-heap instance.
The new element to add.
Adds a new element to the max-heap while maintaining the heap property. The element is initially added at the end and then bubbled up as needed.