deque in Python

 

deque is a double-ended queue, which supports adding and removing elements from both ends. 


Here is a visual representation of deque: 





Post a Comment

0 Comments