Removes the last element from the heap, maintaining the heap condition of the heap.
Removes the last element from the heap, maintaining the heap condition of the heap.Note: The last element is not guaranteed to be the smallest element!
This function has a time complexity of O(1).