26
SOLUTION MEGATHREAD-❄️- 2023 Day 20 Solutions -❄️-(self.adventofcode)
submitted 2 years, 1 month ago* (edited 48 minutes after) by daggerdragon to /r/adventofcode (134.8k)
THE USUAL REMINDERS
- All of our rules, FAQs, resources, etc. are in our [community wiki](https:...
since 2 years, 1 month ago
1 of 1
Tip Reveddit Real-Time can notify you when your content is removed.
your account history
Tip Check if your account has any removed comments.
view my removed comments you are viewing a single comment's thread.
view all comments


[LANGUAGE: Golang] [Code]
My first hunch for part 2 after inspecting the input turned out to be correct. We were kind of being prepared for this through earlier puzzles. I didn't even have to find the LCM for the cycle length of each input into my rx input as they were already all prime for me (but YMMV?).
Runs in about 66ms. despite all the map lookups.