This article may be too technical for most readers to understand.(April 2022) |
In computer science, a double-ended queue (abbreviated to deque, /dɛk/ DEK[1]) is an abstract data type that generalizes a queue, for which elements can be added to or removed from either the front (head) or back (tail).[2] It is also often called a head-tail linked list, though properly this refers to a specific data structure implementation of a deque (see below).