diff --git a/u10/najkratsia_cesta.py b/u10/najkratsia_cesta.py index c27e54b..01bcf17 100644 --- a/u10/najkratsia_cesta.py +++ b/u10/najkratsia_cesta.py @@ -1,3 +1,5 @@ def shortest_path(number_of_nodes, connections): - - pass \ No newline at end of file + start = 0 + end = number_of_nodes - 1 + if start == end: + return [0]