What is a Stack?

A stack is a fundamental data structure in computer science where the last item added is the first to be removed, commonly referred to as LIFO. Let's explore how it works and where it's used!

Visualisation

Have a play around with this.