19
SOLUTION MEGATHREAD-❄️- 2023 Day 19 Solutions -❄️-(self.adventofcode)
submitted 2 years, 1 month ago* (edited 29 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
3 of 3
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: Python3]
First solution this year I've been happy with enough to post.
Approach is similar to what other posters have used. Recursively build a tree to reach all of the
Anodes, keeping track of criteria used to reach theAnode along the way. The big thing that got me was as you slide across the criteria, you have to also keep the inversion of that criteria because it didn't match.After you have the criteria its as easy as throwing out the possibilities that don't match. Then just do a multiplicative sum of the ranges left.
Paste Link
Psst: we can see your Markdown because the backticks are being incorrectly escaped.edit: 👍Lol thanks.