A mutable MAX HEAP data-structure. It can also work as a min heap by inverting the gt parameter.
gt
Returns the size of the heap
Returns the top most element on the heap
Creates a new MaxHeap that works with numbers
Remove the top element from heap.
Adds a new element to the heap
Creates a new MaxHeap data structure.
Generated using TypeDoc
A mutable MAX HEAP data-structure. It can also work as a min heap by inverting the
gtparameter.