CompareFunction
Return element in the list
Runtime: O(1).
Return the size of the heap.
Add element to the heap
Runtime: O(log(n)).
T
Replace an element in given index and rebalance the heap.
Runtime: O(log(n))
Remove an element in given index and rebalance the heap.
Runtime: O(log(n))
Extract least priority element.
Remove the first element from the list.
Replace it with the last element from the list.
Fix the order by using sinkDown method for the first element.
Runtime: O(log(n)).
Return the minimum priority in the heap without removing it.
Runtime: O(1).
Generated using TypeDoc
Binary Heap class