DEV Community

Dominic
Dominic

Posted on

Dequeue

Dequeue

The collections.deque () class is a generalization of stacks and queues and is a deque. The deque () deque supports thread-safe, memory-efficient addition and retrieval of sequence elements from either side with roughly equal O (1) performance in either direction.

Image description

Top comments (0)