Skip to content

Commit

Permalink
Remove repeating code
Browse files Browse the repository at this point in the history
  • Loading branch information
vsedov committed Dec 2, 2024
1 parent 20315aa commit c9cbb22
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/aoc/aoc2024/day_02.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
Nums: TypeAlias = Iterable[int]


Nums: TypeAlias = Iterable[int]


def safe(nums: Nums, /) -> bool:
match [b - a for a, b in pairwise(nums)]:
case [*diffs] if all(d in {1, 2, 3} for d in diffs) or all(
Expand Down

0 comments on commit c9cbb22

Please sign in to comment.