Dequeue

A deque or double-ended queue is a linear list in which all insertion and deletion operations (and, typically, data access operations) are performed at both ends of the list.

A deque is a more general variant of a stack or queue. Additionally, one should distinguish between output-restricted deques and input-restricted deques, in which deletion and insertion operations respectively are performed only at one end.

When working with deques, the concepts of left and right ends are used.


Links: