Adds a new element to the min-heap while maintaining the heap property. The element is initially added at the end and then heapified up as needed. An element the heap already holds is ignored, and the heap is unchanged.
The type of min-heap array.
The min-heap instance.
The new element to add.
Adds a new element to the min-heap while maintaining the heap property. The element is initially added at the end and then heapified up as needed. An element the heap already holds is ignored, and the heap is unchanged.