3 ms·
Probably just an efficiency argument, since deque is designed to be efficient when used as a stack/queue. https://docs.python.org/3.8/library/collections.html#c
by comfydragon 6y ago
Probably just an efficiency argument, since deque is designed to be efficient when used as a stack/queue. https://docs.python.org/3.8/library/collections.html#collections.deque https://docs.python.org/3.8/library/collections.html#collect...