Skip to content

Commit 7bb1be0

Browse files
authored
at most
1 parent 4326c76 commit 7bb1be0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphs/dijkstra_algorithm.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def decrease_key(self, tup, new_d):
215215
[(5, 'A'), (15, 'B')]
216216
"""
217217
idx = self.pos[tup[1]]
218-
# assuming the new_d is atmost old_d
218+
# assuming the new_d is at most old_d
219219
self.array[idx] = (new_d, tup[1])
220220
while idx > 0 and self.array[self.par(idx)][0] > self.array[idx][0]:
221221
self.swap(idx, self.par(idx))

0 commit comments

Comments
 (0)