enqueue and dequeue

The two basic queue operations: enqueue adds an item at the back and dequeue removes the item at the front.

In more detail

With a deque, enqueue is append and dequeue is popleft. Do not confuse "dequeue", the operation, with "deque", the double-ended queue data structure.

Related terms

Taught in

References