From d6dcedef417bea0aaa19ed4591fb4521e327ee2c Mon Sep 17 00:00:00 2001 From: "J.J" Date: Wed, 20 Dec 2023 10:59:43 -0500 Subject: day 20 racket complete --- aoc2023-other/day-20/day-20.rkt | 1 + 1 file changed, 1 insertion(+) (limited to 'aoc2023-other/day-20/day-20.rkt') diff --git a/aoc2023-other/day-20/day-20.rkt b/aoc2023-other/day-20/day-20.rkt index 890abc1..eccdd91 100644 --- a/aoc2023-other/day-20/day-20.rkt +++ b/aoc2023-other/day-20/day-20.rkt @@ -132,6 +132,7 @@ ;; part 2 ;; rx receives a tone from gh, which receives four tones itself ;; those tones arrive on regular synced cycles so it's just the LCM of those cycle lengths +;; and since those cycle lengths are prime, it reduces to the product of the lengths ;; this is a really hacky mutable solution, I'm sure there's better ways of flagging these cycles ;; from the data -- the four conjunctions that indirectly feed rx -- cgit v1.2.3