Python Deque

Python Deque is a double-ended queue. It has two ends, a front and a rear end. In Python, we can implement deque using a collection module. Deque provides a fast update, insert and delete operations than a data list structure. For appending and pop operation, deque provides time complexity O(1).

More by pratik bais

View profile