Mental Model
A dequeue lets you add or remove items from both ends quickly using a linked list.
Analogy: Think of a double-ended queue like a train with cars that can be added or removed from the front or back easily.
null ← 1 ↔ 2 ↔ 3 -> null ↑front ↑rear
