treewide: fix 'dijkstra' typo
The downside of copy-pasting snippets from previous solutions :').
This commit is contained in:
parent
7dee19ff44
commit
b4d9ecf0a5
10 changed files with 20 additions and 20 deletions
|
|
@ -51,7 +51,7 @@ def solve(input: list[str]) -> int:
|
|||
assert end is not None # Sanity check
|
||||
return HeightMap(heights, start, end)
|
||||
|
||||
def djikstra(map: HeightMap) -> int:
|
||||
def dijkstra(map: HeightMap) -> int:
|
||||
# Priority queue of (distance, point)
|
||||
queue = [(0, map.start)]
|
||||
seen: set[Point] = set()
|
||||
|
|
@ -81,7 +81,7 @@ def solve(input: list[str]) -> int:
|
|||
)
|
||||
for start in starts:
|
||||
map.start = start
|
||||
yield djikstra(map)
|
||||
yield dijkstra(map)
|
||||
|
||||
map = to_height_map(input)
|
||||
return min(hike_distances(map))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue