A linear data structure that holds a linear, ordered sequence of elements. They can be implemented using arrays or linked lists.

<aside> 💡 Visualize a stack as a bunch of books stacked on top of each other, where you can only view and remove the top book. To access the bottom book, you need to remove all books one by one. This follows the Last In, First Out (LIFO) principle.

</aside>

Common Uses

Operations