Interview Questions
Interview Guides
Experiences
Mock Interviews
Pricing
Explore
Sign in
Interview Guides
Get started
All questions
/
Coding
BFS and DFS on Graphs
Medium
Asked at 1 company
bfs
Trees
Graphs
Description
Solution
Companies
Discussion
Problem
Implement breadth-first search (BFS) or depth-first search (DFS) on a graph or tree.
Question
Answer
Description
Solution
Companies
Discussion
Problem
Implement breadth-first search (BFS) or depth-first search (DFS) on a graph or tree.
Your answer
Edit
Preview
Try one AI text evaluation on us
Get structured feedback, scored against a 4-axis rubric. Premium unlocks unlimited.
0 words
target ~200
Try a free preview
Stuck? Get a hint
Past attempts
Up next
BFS and DFS Traversal
Medium
BFS or DFS on Graphs
Medium
BFS or DFS on a Graph
Medium
Next question
BFS and DFS on Graphs | Dataford Interview Questions