Python stack and queue problems
Last in, first out and first in, first out: stack and queue problems in Python, with tests that check your code.
Beginner
Intermediate
- 63. Queue From Two StacksFirst in, first out, built from two last-in-first-out piles60 XP12 min
- 73. Reverse Polish CalculatorArithmetic with no brackets, where the operator comes last65 XP12 min
- 76. Tidy a File PathUntangle a folder path full of dots and extra slashes65 XP12 min
- 85. Stack With a MinimumA stack that always knows its smallest item70 XP12 min
- 96. Ring BufferA fixed-size queue that recycles its oldest slot75 XP15 min
- 103. Wait for a Warmer DayHow long until it gets warmer than today?80 XP15 min
Advanced
Expert
Other topics
- Python Basics
- Strings
- Lists
- Dictionaries and sets
- Loops
- Functions
- Math
- Sorting and searching
- Two pointers
- Sliding window
- Recursion and backtracking
- Dynamic programming
- Greedy
- Graphs
- Trees
- Bit manipulation
- Classes
- Iterators and generators
- Parsing
- Simulation
- Python idioms
- Regular expressions
- Codes and ciphers
- Working with data
- Grids and matrices
- Geometry
- Games and puzzles
- Heaps
- Data structures
Or see every challenge, with study plans, today's challenge and duels.