Module · Stacks
Last-In, First-Out — elements are added and removed from the top only.
↑ TOP
BOTTOM
Size: 3/6
Stack initialized. Top is the rightmost element (LIFO).
Push
Pop
Peek
A stack follows LIFO — Last-In, First-Out. The most recently pushed element is always the first one removed.
Stacks power undo systems, browser history, and recursive call stacks. All core operations run in constant time.