How to Implement a Stack in Python and Check the Run-time Performance

We will cover the following in this article What is a Stack – a short introduction How to implement a Stack in Python Investigate the run-time performance What is a Stack A Stack is a useful concept that is used in daily life, and hence, a concept that is important to understand and master as … Read more

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