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
2 of 2
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]
I really rode the struggle bus on this one today. Part 1 was easy enough, though it seems like I spent more time writing parsing code than I actually did solving the problem. I had the right idea for Part 2 fairly early on, but I had a difficult time really grasping what the problem was asking for, for some reason. Throw in a few off-by-one errors, multiple rewrites, RL interruptions, struggles with the language itself...and well, the day is pretty much shot, but I did finally make it to the finish line at last.
Not particularly proud of my code today, but here it is.
Part 1
Part 2
Part 1 for me was ~80% writing structs and nom parsing code, and 20% doing the actual logic.