Stacks and Queues Implementation in Python

Python stdlib already implemented an efficient queue/stack which is collections.deque.

Stack is LIFO (Last In First Out)
Queue is FIFO (First in FIrst Out)

Code source is here on github






Comments

Popular Posts