Mental Model
A deque lets you add or remove items from both ends easily, like a line where people can join or leave from front or back.
Analogy: Imagine a train with doors at both front and back. Passengers can get on or off from either door without waiting for the whole train to stop at one end.
front -> [ ] -> [ ] -> [ ] -> back βfront pointer βback pointer