Top 50
Topic roadmap
Updated weekly · Last refresh Sep 13

Top 50 bfs Interview Questions

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

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

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

bfstraversalGraphsUnityNTT DATATelus Digital
Implement BFSEasy
Practice
Recently asked

Use BFS to reconstruct the shortest route between two nodes in an Air Space Intelligence Flyways graph.

bfsAlgorithmsAir Space IntelligenceNuroC3.ai
More bfs questions with a free account
2
dfs12 questions · ~300 min
Cycle Detection in Dependency GraphEasy
Practice

Use iterative DFS coloring to detect circular dependencies in an Applied Intuition simulation module graph.

dfsbfsGraphsApplied IntuitionKLANextdoor
Number of IslandsMedium
Practice
Recently asked

Count four-directionally connected islands in a 2D grid using BFS or DFS.

dfsbfsAlgorithmsAAmazon Kuiper Manufacturing EnterprisesCChatham FinancialAADCI - Karnataka
Cycle Detection or Topological SortMedium
Practice
Recently asked

Build a lexicographically smallest rollout order for Zscaler policy services, or detect an impossible dependency cycle.

dfsbfsGraphsZscalerCanonicalNuro
More dfs 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
Queue3 questions · ~75 min
Shortest Path in GraphMedium
Practice

Find the minimum-cost path in a weighted graph using Dijkstra's algorithm and reconstruct its node sequence.

QueueDynamic ProgrammingbfsCostar GroupVBeyondDecision Point
Breadth-First Search Level OrderEasy
Practice

Use breadth-first search to return reachable Delta DIAView assets grouped by distance from a starting asset.

QueuebfsGraphsUBSDelta Electronics AmericasThemesoft
More Queue questions with a free account
4
shortest path5 questions · ~125 min
More shortest path questions with a free account
5
Arrays7 questions · ~175 min
More Arrays questions with a free account
6
More topics9 questions · ~225 min
Trees and Graphs CodingMedium
Practice

Detect whether a directed graph contains a cycle using depth-first search and recursion-state tracking.

RecursiondfsbfsHuron Consulting GroupMicrosoft
More questions with a free account
The finish line: interview-readyComplete all 50 questions to finish this plan.