20
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
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: Rust]
My Day 19 on GitHub
A pretty straightforward day overall, using ranges of numbers for part 2 (as was the case with one of the puzzles earlier in the month), only this time constructing new 4d ranges (always fun to create a
Tesseractdata type, too 😁) and passing them on to another workflow or to the next step in this workflow as appropriate.Rust is great to use for these problems. You get to write high-level code with a structure of well-defined data types, but then the compiler comes in and optimises it into something that calculates both parts here in less that one millisecond total.