PRACTICE

Stack Interview Questions

32 Stack problems asked across FAANG and top tech companies. Approach hints, optimal solutions, and related problems.

Ready to try these in a real interview?

I'm Alex. I'll interview you on 2 problems like these at your level, ask follow-ups, and give you a scored report.

πŸ”’

to save your progress.

Companies

Topics

Stack 32
StackClear all
42.Trapping Rain Water
ArrayTwo PointersStack
341.Flatten Nested List Iterator
StackTreeDepth-First Search
735.Asteroid Collision
ArrayStackSimulation
Medium+1β–Ά Mock
155.Min Stack
StackDesign
503.Next Greater Element II
ArrayStackMonotonic Stack
94.Binary Tree Inorder Traversal
StackTreeDepth-First Search
144.Binary Tree Preorder Traversal
StackTreeDepth-First Search
2296.Design a Text Editor
Linked ListStringStack
32.Longest Valid Parentheses
StringDynamic ProgrammingStack
402.Remove K Digits
StringStackGreedy
716.Max Stack
Linked ListStackDesign
678.Valid Parenthesis String
StringDynamic ProgrammingStack
364.Nested List Weight Sum II
StackDepth-First SearchBreadth-First Search
394.Decode String
StringStackRecursion
445.Add Two Numbers II
Linked ListMathStack
853.Car Fleet
ArrayStackSorting
1762.Buildings With an Ocean View
ArrayStackMonotonic Stack

Practice with a Mock Interview

Solve these Stack problems under real interview pressure with our AI interviewer.

Start Mock Interview β†’