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! ❤️
Experts told me not to overthink Day12.
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.
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...
Day 12
I think that this is a narrative trick...or the best problem to fool AI.
Thank you to everyone who participated in this year's Advent of Code. The number of problems this year was a little disappointing, but it was still fun. I look forward to seeing you again next year! And Happy Christmas and new year!
AOC 2025 COMPLETE! Saw some of the comments for this one saying "don't overcomplicate it". Spent about an hour dragging a couple of tools on, then deleting them again, before I decided to just try something simple to start. Turns out that was the answer, if only I'd listened to the comments 😂
Overall, a great end to a very enjoyable AoC, I've learnt so much from others' solutions, so thank you all, and a big congratulations to all participants! Final shameless shoutout to Euleryx for anyone looking to continue the nerdy chatter and "mathsy" problem-solving into the new year.
Happy Christmas 🎄
Part 11) To begin with, I created a group ID. This was based on line breaks, so every time there was a line break, the group ID increased by 1. This helped to label the 6 presents 0-5, and also mark the grid inputs as group 6. I proceeded to filter the group 6 items out, so I could deal with them separately.
2) Looking at just the grids, I then decided I need to separate the present counts from the grid dimensions.
6) With both the number of presents needed per grid, and the count of spaces each present occupied now side by side, I was able to multiply these two values together to get the total number of spaces occupied per grid per present ID. Summing these values per grid then gave me the total spaces occupied per grid.
Day 12 definitely left me with a smile on my face, for sure😅 And with that, the Alteryx Base-A AOC Challenge is complete!
My Solutions:
My Reflection:
done.
Solved.
Sometimes simple is best
Now to go back to Day 10