# Stacks
# Stacks
# Theory
- Abstract Data Type
- LIFO (Last in, First out)
pushadds an item as the top item on the stackpopremoves the top item on the stackpeekgets the top item on the stack without popping it- Ideal backing Data Structure: Linked List
If you know the Maximum Number of items that will ever be on the stack, an array can be a good choice. If memory is tight, an array might be a good choice.