Comparing Performance of Python list as a Stack – How a wrong implementation can ruin performance

A Stack? A Stack is using the principle first-in-last-out. It is like a stack of plates. The last one you put on the top is the first one you take. How can you implement them in Python? Well, we are in luck, you can use a Stack, and if done correctly, you will have the … Read more

How to Implement a Queue in Python and Compare Performance with a Python list

What will we cover in this article What is a Queue? Implement a Queue in Python Make performance testing of it Compare it with performance of a Python list What is a Queue? We all know what a queue is. You go to the grocery store and get spinach, strawberry and bananas for your shake. … Read more