Properties
_comparator
_comparator: Function
_queue
_queue: Array<any>
_tailPos
_tailPos: number
Methods
_defaultComparator
- _defaultComparator(a: number, b: number): boolean
-
Parameters
Returns boolean
init
- init(comparator: Function): void
offer
- offer(element: object): void
peek
-
Returns any
The first element
pop
-
Returns any
The first element
size
-
Returns number
PirorityQueue size
The PriorityQeueu class