A stack is last in, first out
Level 6: Stack & queue. Paper 2 asks you to use a stack. Paper 4 asks you to write push and pop on an array, with Top starting at -1.
- Previous: Boss: add through a pointer
- Next: Write Pop
- AS & A Level Path
Level 6: Stack & queue. Paper 2 asks you to use a stack. Paper 4 asks you to write push and pop on an array, with Top starting at -1.