Question d’entretien chez Amazon

BFS and DFS and time and space complexity