Skip to content
CCC Python Course

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.deque for efficient operations.

Before this module

Lessons

  1. 1Stacks and queues

Practice

Try this on the judge. The link opens the problem on WMOJ.

  1. 2022 J2
    Fergusonball Ratings (opens on WMOJ in a new tab) WMOJ

    Match opening and closing brackets using a stack.