From 7739b646929188f0f56883b6752e01cb1e4e9b7e Mon Sep 17 00:00:00 2001 From: Isaac Good Date: Wed, 1 Jan 2025 21:44:47 -0800 Subject: [PATCH] AoC 2024/22.py bugfix --- 2024/d22.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/2024/d22.py b/2024/d22.py index 9f38319..2c6faff 100755 --- a/2024/d22.py +++ b/2024/d22.py @@ -18,6 +18,7 @@ class Day22(aoc.Challenge): aoc.TestCase(part=1, inputs=SAMPLE[0], want=37327623), aoc.TestCase(part=2, inputs=SAMPLE[1], want=23), ] + TIMEOUT = 300 @staticmethod def pseudo_randon(number: int) -> int: @@ -39,7 +40,7 @@ def part1(self, puzzle_input: list[int]) -> int: def part2(self, puzzle_input: list[int]) -> int: """Find the delta-pattern which maximizes returns.""" - def delta_values(puzzle_input): + def delta_values(): """Generate the deltas between the last digit of 2000 prices.""" patterns_seen = set() delta_collections = []