treewide: fix 'dijkstra' typo

The downside of copy-pasting snippets from previous solutions :').
This commit is contained in:
Bruno BELANYI 2025-05-20 02:03:36 +01:00
parent 7dee19ff44
commit b4d9ecf0a5
10 changed files with 20 additions and 20 deletions

View file

@ -22,7 +22,7 @@ def solve(input: List[str]) -> int:
continue
yield Point(x, y)
def djikstra(start: Point, end: Point) -> int:
def dijkstra(start: Point, end: Point) -> int:
# Priority queue of (distance, point)
queue = [(0, start)]
seen: Set[Point] = set()
@ -42,7 +42,7 @@ def solve(input: List[str]) -> int:
assert False # Sanity check
return djikstra(Point(0, 0), Point(len(levels) - 1, len(levels[0]) - 1))
return dijkstra(Point(0, 0), Point(len(levels) - 1, len(levels[0]) - 1))
def main() -> None:

View file

@ -43,7 +43,7 @@ def solve(input: List[str]) -> int:
continue
yield Point(x, y)
def djikstra(start: Point, end: Point) -> int:
def dijkstra(start: Point, end: Point) -> int:
# Priority queue of (distance, point)
queue = [(0, start)]
seen: Set[Point] = set()
@ -63,7 +63,7 @@ def solve(input: List[str]) -> int:
assert False # Sanity check
return djikstra(Point(0, 0), Point(len(levels) - 1, len(levels[0]) - 1))
return dijkstra(Point(0, 0), Point(len(levels) - 1, len(levels[0]) - 1))
def main() -> None: