Back to exercises

Implement Queue Using deque

Wrap a `deque` inside a small class so enqueue uses `append`, dequeue uses `popleft`, and peek reads the leftmost item without removing it.

Coding Exercises Easy O(1)

Implement Queue Using deque

Wrap a `deque` inside a small class so enqueue uses `append`, dequeue uses `popleft`, and peek reads the leftmost item without removing it.

Implement a queue with enqueue, dequeue, and peek operations.