Question d’entretien chez Amazon

Bfs and DFS algorithm questions and complexity calculation