Removes the minimum item from the heap. It takes O(log n), but also takes O(n) to copy the items.
O(log n)
O(n)
To be modified.
The removed item, or none if empty.
Generated using TypeDoc
Removes the minimum item from the heap. It takes
O(log n)
, but also takesO(n)
to copy the items.