Skip to content

Commit

Permalink
Re-use already decrypted input
Browse files Browse the repository at this point in the history
  • Loading branch information
iamFIREcracker committed Jan 12, 2024
1 parent fabee3a commit 836a25b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/2023/day03.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@

(define-solution (2023 03) (strings)
(values (reduce #'+ (part-numbers strings) :key #'first)
(reduce #'+ (gears) :key #'gear-ratio) ))
(reduce #'+ (gears strings) :key #'gear-ratio) ))

(define-test (2023 03) (509115 75220503))
2 changes: 1 addition & 1 deletion src/2023/day04.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@

(define-solution (2023 04) (strings)
(values (reduce #'+ strings :key #'card-points)
(part2)))
(part2 strings)))

(define-test (2023 04) (20667 5833065))

0 comments on commit 836a25b

Please sign in to comment.