← Back to CS FundamentalsBFS & DFS
CS Fundamentals
The Question
Explain BFS and DFS — when would you use each?
What a Strong Answer Covers
- BFS = queue
- "DFS = stack/recursion
- "both O(V+E)
- use case each
Related Questions
Practice This Question
Get AI-graded feedback on your answer with follow-up probes on weak points.
Take the Free Assessment