Top 50
Topic roadmap
Updated weekly · Last refresh Sep 14

Top 50 Graphs Interview Questions

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

50questions
~21htotal time
356companies covered
Track your progressSign up free to work through all 50 questions and resume where you left off.
Start practicing free →
1
QueueStart here. 8 questions · ~200 min
Breadth-First SearchEasy
Practice
Recently asked

Implement BFS to traverse a graph level by level from a given start node.

QueueSearchingGraphsZensar TechnologiesDover IndiaOneTrust
Shortest Path in a GraphMedium
Practice

Find the minimum-cost path between two nodes in a weighted graph using Dijkstra's algorithm.

QueueSearchingGraphsBairesDevBow WaveReverb
More Queue questions with a free account
2
Recursion17 questions · ~425 min
Directed Graph Cycle DetectionMedium
Practice
Recently asked

Determine whether a directed graph contains a cycle using DFS or topological sorting.

RecursionGraphsC3.aiModernaPymetrics
Depth-First Search ImplementationEasy
Practice
Recently asked

Traverse a graph or tree with DFS and return the visit order from a given start node.

RecursionTreesGraphsZensar TechnologiesAvnetOak Ridge National Laboratory
Maximum Path Sum in TreeMedium
Practice
Recently asked

Use DFS tree dynamic programming to compute the maximum path sum across any parent-child path in a binary tree.

RecursionTreesGraphsMicrosoftLowe's Home ImprovementPlaystation Network
More Recursion questions with a free account
3
dfs9 questions · ~225 min
Detect Cycles in Task GraphMedium
Practice
Recently asked

Detect whether a directed dependency graph of startup tasks contains a cycle using DFS or topological ordering.

dfscycle detectionGraphsAqrXXiaomi TechnologyLucid Motors
More dfs questions with a free account
4
Dynamic Programming3 questions · ~75 min
More Dynamic Programming questions with a free account
5
More topics13 questions · ~325 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
Count Islands in a GridEasy
Practice
Recently asked

Use DFS on a matrix-as-graph to count connected components of land cells.

MatrixGraphsAApplovinYouTubeNiantic
More 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
The finish line: interview-readyComplete all 50 questions to finish this plan.