Stack

easy

Push and pop both touch the top, so nothing underneath ever moves. The call stack is one of these, which is why any recursion can be rewritten with an explicit stack.

Worst O(1) push/pop/peekSpace O(n)
Loading the stack engine…

Where to go next