Pregunta de entrevista de Cisco

Given a graph, write the minimum spanning tree.