aboutsummaryrefslogtreecommitdiff
path: root/2021/15/puzzles.py
diff options
context:
space:
mode:
Diffstat (limited to '2021/15/puzzles.py')
-rw-r--r--2021/15/puzzles.py2
1 files changed, 2 insertions, 0 deletions
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: