Interview Questions
Interview Guides
Experiences
Mock Interviews
Pricing
Explore
Sign in
Interview Guides
Get started
All questions
/
Coding
BFS and DFS Traversal
Medium
Asked at 1 company
Queue
Trees
Graphs
Description
Solution
Companies
Discussion
Problem
Implement breadth-first search (BFS) and depth-first search (DFS) for a graph or tree traversal.
Question
Answer
Description
Solution
Companies
Discussion
Problem
Implement breadth-first search (BFS) and depth-first search (DFS) for a graph or tree traversal.
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 on Graphs
Medium
Graph Traversal BFS/DFS
Medium
BFS or DFS Traversal Implementation
Medium
Next question
BFS and DFS Traversal | Dataford Interview Questions