Pergunta de entrevista da empresa Synopsys

Shortest path in Undirected Graph having unit distance