Discussion thread for day 12 of the Advent of Code - https://adventofcode.com/2025/day/12
Happy Advent, Everyone.
Cannot stress the spoiler part of this one enough.
Final
Echoing @ScottLewis , DO NOT check spoilers unless you want this entire day solved with a single glance. It's not as hard as it looks ;) and feels quite good to solve if you can get it. If you're struggling to wrap your mind around this problem, try to think about simple steps you can take, and see what's left after you do that. If you've tried and you're still stumped, then continue reading!
I enjoyed solving with y'all this year! Thanks for all your efforts and encouragement. Y'all are a blast to work with! Here's to next year!!! So glad I was able to finish Day 10 just before Day 12 released.
Happy Solving!
My advice is "Don't try rigorous approach."
Like @ScottLewis and @CoG mentioned this one turned out to be much simpler than I thought it would be...
In the spirit of keeping it simple...
Can not believe the AoC of the year has completed and I have gotten my first Tree.
Thank you all for the jouney together and the wisdom you have shared.
Happy Upcoming Holidays and wish you all continue to be awesome for the comming year! ❤️
Thoroughly enjoyed this year's competition! Thanks for all the great insights, it's been fascinating to learn some new tools and see how other people tackle problems.
No spoilers for Part 2 though I'm afraid. The code does not allow such things.
Probably too much rearranging the data into the right layout.
Then (at everyones suggestion) tried the easy thing first
Day 12 done! Had a bunch of fun this year. As someone who falls apart with the more complex challenges due to a lack of mathematical ability or CompSci background, I've appreciated them not being too extreme (with the exception of Day 10 of course)! I think I'll be able to give Part 1 of that a crack but Part 2 seems completely out of reach from what I've heard - this blocks my 24th star as well as that's given upon Day 12 completion and having all stars up to that point. Happy advent all, it's been a blast again!
Don't read the spoiler unless you instantly want the method...
