Problem Description

Add/remove from both front and back.
Real Life: Line where you can join from either end.

Step-by-Step Logic:
1. Create deque
2. push_front() adds to front
3. push_back() adds to back
4. pop_front() removes from front
5. pop_back() removes from back

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next