Top 50
Topic roadmap
Updated weekly · Last refresh Sep 12

Top 50 Stack Interview Questions

The most frequently asked Stack questions across all roles and companies, ranked by real interview frequency. Updated daily.

50questions
~21htotal time
319companies covered
Track your progressSign up free to work through all 50 questions and resume where you left off.
Start practicing free →
1
StackStart here. 30 questions · ~750 min
Graph Traversal with BFS and DFSEasy
Practice
Recently asked

Traverse a graph from a start node using BFS and DFS, returning the visit order for each traversal.

StackQueueGraphsSiemensSimple TireInformatica
Queue Using Two StacksEasy
Practice
Recently asked

Simulate FIFO queue operations using two LIFO stacks with amortized O(1) processing.

StackQueueHelp at HomeGenerac Power SystemsSabre Systems
Stack Using QueuesEasy
Practice
Recently asked

Simulate Unity Editor undo-stack operations using only queue behavior and preserve LIFO results.

StackQueueDWS GroupCambia Health SolutionsPPrivate Practice
Trapping Rain WaterEasy
Practice
Recently asked

Compute water trapped between elevation bars using an O(n) two-pointer scan with constant extra space.

StackArraysTwo PointersByteDanceFourkitesCloud Big Data Technologies
More Stack questions with a free account
2
Recursion18 questions · ~450 min
Reverse a Singly Linked ListEasy
Practice
Recently asked

Problem Given the head of a singly linked list, reverse the list, and return the new head node. The linked list is defined as follows: python class ListNo...

RecursionStackDynamic ProgrammingConstellation EnergyMeta ITSchneider Electric
Flatten a Nested ArrayEasy
Practice
Recently asked

Flatten a nested array into a single list using recursion or an explicit stack while preserving left-to-right order.

RecursionStackArraysSentinelOneBask HealthSolytics Partners
Valid ParenthesesEasy
Practice
Recently asked

Use a stack to determine whether delimiters in a Raptive configuration string are properly opened and closed.

RecursionStackStringsRaptiveBrexEquity Trust
Balanced Parentheses String ValidationEasy
Practice
Recently asked

Validate a parentheses string using a stack to ensure matching bracket types and correct nesting in O(n) time.

RecursionStackMathSalesforceIntuitive SurgicalICF
More Recursion questions with a free account

Sign up to see every question

Create a free account to unlock this list and practice real interview questions.

Get my prep plan
3
More topics2 questions · ~50 min
More questions with a free account
The finish line: interview-readyComplete all 50 questions to finish this plan.