What is a stack?
A stack is like a stack of plates. The last item put on, is the first one to be removed (last in first out - LIFO). A stack uses a single pointer to the top of the stack. You can add items (push) and remove items (pop) to/from stacks).
What are uses of stacks?
How to add data to a stack?
stack.push() - points to the next free space, adds the item and increments the stacker pointer
How to remove data from a stack?
stack.pop() - decrements the stack pointer and returns the item at the top of the stack
How are stacks implemented in code?