mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 01:09:40 +08:00
Upgrade to Python 3.13 (#11588)
This commit is contained in:
@ -69,7 +69,7 @@ def dijkstra(
|
||||
x, y = predecessors[x, y]
|
||||
path.append(source) # add the source manually
|
||||
path.reverse()
|
||||
return matrix[destination], path
|
||||
return float(matrix[destination]), path
|
||||
|
||||
for i in range(len(dx)):
|
||||
nx, ny = x + dx[i], y + dy[i]
|
||||
|
Reference in New Issue
Block a user