Problem 641 · Medium

Design Circular Deque

A fixed ring where both ends can grow and shrink, moving the head backward or forward.

Open the interactive visualisation