From d418e965fb28182dd23b67c450d5cde5ba72742f Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 15 Dec 2021 22:22:15 +0100 Subject: Don't add the elongate function to part 1 --- 2021/15/puzzles.py | 2 ++ 1 file changed, 2 insertions(+) (limited to '2021/15/puzzles.py') diff --git a/2021/15/puzzles.py b/2021/15/puzzles.py index 0b294f5..dd19eef 100644 --- a/2021/15/puzzles.py +++ b/2021/15/puzzles.py @@ -16,6 +16,7 @@ class Node(NamedTuple): return self.r < other.r +# START PART 2 def elongate(grid: matrix[int]) -> matrix[int]: ngrid: matrix[int] = [] inc = lambda n: 1 if n == 9 else n + 1 @@ -30,6 +31,7 @@ def elongate(grid: matrix[int]) -> matrix[int]: ngrid.append(list(map(inc, ngrid[i * l + j]))) return ngrid +# END PART 2 def main() -> None: -- cgit v1.2.3