aboutsummaryrefslogtreecommitdiff
path: root/aoc2023-other/day-20/day-20.rkt
diff options
context:
space:
mode:
authorJ.J <thechairman@thechairman.info>2023-12-20 10:59:43 -0500
committerJ.J <thechairman@thechairman.info>2023-12-20 10:59:43 -0500
commitd6dcedef417bea0aaa19ed4591fb4521e327ee2c (patch)
treec6620b44c0b59f6b687ac4d2e0860029463d4371 /aoc2023-other/day-20/day-20.rkt
parent98bd2394894ade445d4aa6e81fee95b4eb3e6140 (diff)
downloadgleam_aoc-d6dcedef417bea0aaa19ed4591fb4521e327ee2c.tar.gz
gleam_aoc-d6dcedef417bea0aaa19ed4591fb4521e327ee2c.zip
day 20 racket complete
Diffstat (limited to 'aoc2023-other/day-20/day-20.rkt')
-rw-r--r--aoc2023-other/day-20/day-20.rkt1
1 files changed, 1 insertions, 0 deletions
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