https://cs.slides.com/colt_steele/stacks

A LIFO data structure!

The last element added to the stack will be the first element removed from the stack

How is it used?

How we’ll visualize a stack

image.png

We’ve seen this before - the call stack!

Where stacks are used