← Google questions

Graph traversal problem

Filed under Google · Also reported at Anchanto, PhonePe

Given a graph, solve a specific traversal problem using DFS or BFS. Discuss the time and space complexity trade-offs between both approaches.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Google questions

Collected from public candidate posts and coding forums. Updated Nov 2026.