Double-Ended Queue
A Deque, pronounced 'deck', is a double-ended queue that supports insertion and removal from both the front and the rear. It generalizes the behavior of both stacks and queues.
Supports addFront and addRear.
Supports removeFront and removeRear.
Can implement Stack behavior by using one end.
Can implement Queue behavior by adding at one end and removing at the other.
Efficient implementations provide O(1) end operations.
0-2 years experience
2-5 years experience
5-8 years experience
8+ years experience