Pregunta de entrevista de Serko

Some BFS/DFS graph question of matrices.