Codele / Algorithms

Shortest paths

Roads have different lengths, so the fewest turns is not always the shortest drive. Always settle the closest town next, and the shortest distances appear one by one.

Loading the playable lesson…