Stacks
A stack is a data structure in which all access is restricted to the most recently inserted elements.
Like a tray carrier in a cafeteria (demo)
LIFO – Last In First Out
push
pop
Previous slide
Next slide
Back to first slide
View graphic version