Boss: reverse four integers
Level 6: Stack & queue. Reversing a sequence is the standard reason to reach for a stack. Push everything, then pop until it is empty.
- Previous: Stack, queue, or either?
- Next: Follow a linked list
- AS & A Level Path
Level 6: Stack & queue. Reversing a sequence is the standard reason to reach for a stack. Push everything, then pop until it is empty.