Constructors
constructor
- new PriorityQueue<T>(compare: (a: T, b: T) => number): PriorityQueue<T>
Parameters
- compare: (a: T, b: T) => number
Properties
compare
compare: (a: T, b: T) => number Methods
pop
- pop(): undefined | T
Returns undefined | T
push
- push(value: T): void
Returns void
size
- size(): number
Returns number
Priority Queue Data Structure