Aktualizovat u10/najkratsia_cesta.py
This commit is contained in:
parent
4ee1087ab4
commit
669d714d48
@ -24,3 +24,4 @@ def shortest_path(number_of_nodes, connections):
|
||||
heapq.heappush(queue, (distance + d, path + [neighbor]))
|
||||
|
||||
return []
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user