A Deque is a homogeneous list of elements in which insertions and deletion operations are performed on both the ends.
Because of this property it is known as double ended queue i.e. Deque
Deque has two types:
- Input restricted queue: It allows insertion at only one end
- Output restricted queue: It allows deletion at only one end
- Deque (Double-Ended QUEue)