Level 2 · Core
Stacks and queues
About 25 steps, from the first idea to a mastery test.
Stage 0Last in, first out4 stepsFree
- 1An undo button8 min
- 2Typing with backspace8 min
- 3Brackets that match10 min
- 4A queue: first in, first out10 min
Stage 1Matching brackets4 stepsFree
- 1How many brackets are missing12 min
- 2The longest run that matches16 min
- 3Score the brackets16 min
- 4Reverse inside the brackets16 min
Stage 2Monotonic stack4 stepsFree
Stage 3Queues and deques4 stepsFree
- 1The biggest in every window18 min
- 2The first one that has not repeated14 min
- 3Order the deck16 min
- 4The longest steady stretch20 min
Stage 4Expression evaluation4 stepsFree
- 1Calculate in postfix order14 min
- 2Plus, minus and brackets18 min
- 3Multiply before you add18 min
- 4Tidy up a file path12 min
Stage 5Mastery5 stepsFree
- 1Asteroid field18 min
- 2Can this order happen14 min
- 3Smallest word of distinct letters20 min
- 4Add up every subarray's lowest value22 min
- 5Rain between the walls20 min