mirror of
https://github.com/Noettore/AdventOfCode.git
synced 2025-10-15 03:36:39 +02:00
AoC 2021: day 15 typo
Signed-off-by: Ettore Dreucci <ettore.dreucci@gmail.com>
This commit is contained in:
@@ -66,7 +66,7 @@ def dijkstra(grid: list) -> int:
|
|||||||
|
|
||||||
def part1(grid: list) -> int:
|
def part1(grid: list) -> int:
|
||||||
"""part1 solver take the entries and return the part1 solution"""
|
"""part1 solver take the entries and return the part1 solution"""
|
||||||
return dijkstra(grid)[0]
|
return dijkstra(grid)
|
||||||
|
|
||||||
def part2(grid: list) -> int:
|
def part2(grid: list) -> int:
|
||||||
"""part2 solver take the entries and return the part2 solution"""
|
"""part2 solver take the entries and return the part2 solution"""
|
||||||
@@ -83,7 +83,7 @@ def part2(grid: list) -> int:
|
|||||||
row = [(x + 1) if x < 9 else 1 for x in row]
|
row = [(x + 1) if x < 9 else 1 for x in row]
|
||||||
grid.append(row)
|
grid.append(row)
|
||||||
|
|
||||||
return dijkstra(grid)[0]
|
return dijkstra(grid)
|
||||||
|
|
||||||
def test_input_day_15():
|
def test_input_day_15():
|
||||||
"""pytest testing function"""
|
"""pytest testing function"""
|
||||||
|
Reference in New Issue
Block a user