Term
enqueue
The operation that adds a new element at the rear of a queue. It takes O(1) with an array and with a linked list.
The lesson that explains this term
Lessons that use this term
5.0What is a queue?5.1.1Creating an array queue5.2.2Enqueue: wrapping around with mod5.3.1Creating a linked-list queue5.3.2Enqueue: adding a node at the rear5.3.3Dequeue: removing the front node5.3.4Peek: looking at the front5.3.5Array or linked list?5.4.1A queue with one pointer5.4.2Enqueue: adding after rear5.5.1What is a priority queue?5.6.2A queue from two stacks