Constructors
constructor
- new Heap(maxHeapSize: number): Heap
Properties
Private heapSize
heapSize: number
Private maxHeapSize
maxHeapSize: number
Methods
contains
- contains(item: T): boolean
-
Parameters
Returns boolean
Private swap
- swap(itemA: T, itemB: T): void
A basic implementation of a min-heap