Domanda di colloquio di Two Sigma

2 graph questions (DFS, connected components)