Aktualizovat u10/najkratsia_cesta.py

This commit is contained in:
Oleksandr Mateshchuk 2026-11-20 17:27:04 +00:00
parent 4ee1087ab4
commit 669d714d48

View File

@ -24,3 +24,4 @@ def shortest_path(number_of_nodes, connections):
heapq.heappush(queue, (distance + d, path + [neighbor]))
return []