deque
- User
deque
- Assistant
A deque, short for "double-ended queue," is a type of data structure that supports adding and removing elements from both ends with efficient performance. It is different from a standard queue, which typically follows a "first in, first out" (FIFO) principle where elements are only added to the back and removed from the front.