Removes and returns the minimum element (root) from the heap. Replaces root with last element and restores heap property.
The type of min-heap array.
The min-heap instance.
The minimum element or undefined if heap is empty
undefined
Removes and returns the minimum element (root) from the heap. Replaces root with last element and restores heap property.