Mental Model
A deque lets you add or remove items from both ends easily, like a line where you can join or leave from front or back.
Analogy: Imagine a train with doors at both ends where passengers can get on or off from either the front or the back.
front -> [ ] -> [ ] -> [ ] -> back ā ā add/remove front add/remove back
