Size of the queue
Remove the top element from queue
an element from the queue
Enqueue an element to queue
size of queue after added an element
Peek the top element of queue without removing it
the top element
Convert queue to an array
an array representation of queue
Generated using TypeDoc
Priority Queue
Internally heap Heap data structure is used to implement this queue.
Example