Stacks and queues
- Stage
- 4
- Module
- M4.8
- Lessons
- 1
In this module
- Use a stack to store data in LIFO order and solve matching problems.
- Use a queue to store data in FIFO order and solve ordering problems.
- Choose the right data structure for the problem.
- Implement and use
collections.dequefor efficient operations.
Before this module
Lessons
Practice
Try this on the judge. The link opens the problem on WMOJ.
- 2022 J2Fergusonball Ratings (opens on WMOJ in a new tab) WMOJ
Match opening and closing brackets using a stack.