Top 50
Topic roadmap
Updated weekly · Last refresh Nov 5

Top 50 traversal Interview Questions

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

50questions
~21htotal time
78companies covered
Track your progressSign up free to work through all 50 questions and resume where you left off.
Start practicing free →
1
bfsStart here. 10 questions · ~250 min
Shortest Paths in Unweighted GraphEasy
Practice
Recently asked

Use BFS to compute shortest path distances from a source node to every node in an unweighted graph.

bfstraversalGraphsUnityNTT DATATelus Digital
Breadth-First Search TraversalEasy
Practice

Return the breadth-first traversal order of a directed HP IQ graph while avoiding repeated visits.

bfstraversalGraphsHp IqMunich Reathenahealth
More bfs questions with a free account
2
Recursion3 questions · ~75 min
Mirror Image of Binary TreeMedium
Practice
Recently asked

Recursively swap every binary tree node's left and right subtrees to generate its mirror image.

RecursiondfsData StructuresVVIAVI SolutionsVVComplyAMD
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
dfs15 questions · ~375 min
Cycle Detection in Service GraphMedium
Practice

Detect circular Tencent Cloud TKE service dependencies using DFS node coloring.

dfstraversalGraphsTencentCloud Security ServicesAlten
Depth-First Search TraversalEasy
Practice
Recently asked

Return a deterministic depth-first traversal of an HP IQ directed graph using an explicit stack and cycle detection.

dfstraversalGraphsHp IqManpower Belgium
More dfs questions with a free account
4
bst3 questions · ~75 min
BST TraversalsMedium
Practice

Return the inorder, preorder, and postorder traversals of a binary search tree using depth-first traversal.

bstdfsData StructuresTripadvisorCCimpress Technology
More bst questions with a free account
5
Arrays7 questions · ~175 min
More Arrays questions with a free account
6
traversal5 questions · ~125 min
More traversal questions with a free account
7
More topics7 questions · ~175 min
Binary Tree TraversalMedium
Practice
Recently asked

Traverse a binary tree level by level, alternating left-to-right and right-to-left order with BFS.

CodingbfstraversalWWhatfixCompassWarner Bros. Discovery
Efficient Traversal of Complex StructuresMedium
Practice
Recently asked

Return the path to a Bloomberg Terminal topic in a nested hierarchy using iterative depth-first search.

efficiencytraversalBloombergEthos Life
More questions with a free account
The finish line: interview-readyComplete all 50 questions to finish this plan.