Skip to content

Commit

Permalink
AoC 2024/22.py bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaacG committed Jan 2, 2025
1 parent be2b7d6 commit 7739b64
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 2024/d22.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 = []
Expand Down

0 comments on commit 7739b64

Please sign in to comment.