Pergunta de entrevista da empresa Texas Instruments

Dijkstra algorithm with a slight modification