Day 4 - Stacks and QueuesStacksPractice QuestionsOverview

Stack Practice Questions

A curated set of stack problems. These cover the patterns you’ll see again and again — bracket matching, monotonic stacks, expression evaluation, and stack design.

Try each one before peeking at the solution. The interview question isn’t usually “do you know what a stack is” — it’s “can you recognize when one would help?” These problems train that recognition.

Easy

ProblemPatternStatus
Valid ParenthesesMatching pairsAvailable
Min StackAuxiliary stackAvailable
Implement Queue using StacksTwo stacksAvailable

Medium

ProblemPatternStatus
Next Greater ElementMonotonic stackAvailable
Evaluate Reverse Polish NotationExpression evaluationAvailable
Daily TemperaturesMonotonic stackAvailable

More Practice (Coming Soon)

ProblemPatternStatus
Largest Rectangle in HistogramMonotonic stackComing Soon
Trapping Rain WaterMonotonic stack / DPComing Soon
Asteroid CollisionSimulation + stackComing Soon
Basic CalculatorExpression evalComing Soon
Decode StringNested structureComing Soon
Remove K DigitsMonotonic stackComing Soon