Stacks at work
Part 2 — applications of stacks and the push/pop programs asked in board papers.
In this lesson you will
- Use a stack to reverse data, check brackets and evaluate postfix expressions
- Explain how the call stack, undo and back buttons follow LIFO
- Write push and pop functions that move items meeting a condition into a stack and display them