Linear structures

Deque

A double-ended queue that supports efficient operations at both ends.

Learn with an interactive visualization

Category: Linear structures. Complexity: Insert / delete O(1).

A double-ended queue that supports efficient operations at both ends. Interactive visualization, Java code, operations, complexity, and a complete…