Discussion thread for day 4 of the Advent of Code - https://adventofcode.com/2025/day/4
Very simple.
Every time when I see map style puzzle in AoC, I'm always overwhelmed at first according to past experience(unlike @Hub119 😁)
However, today's puzzle was very straightforward without having to come up with something clever.
Ah, 1/3 is already over this year...
Part1
The context of puzzle was simple, and everything was smooth but my answer was wrong at the end. Thing is that, I didn't realize the presence of rolls that have no
neighborhood in any of 8 surrounding position. Count of those presence were missing, that takes extra time to reach to the goal.
Part2
Nothing special. The solution for part1 is applicable to part2. Just iterating process where I felt it's too straightforward....
In my twisted assumption, usual part2 would ask...
"when roll paper is removed, new roll papers will be generated at surrounding 8 position." or input data is so designed that only one roll paper is removed in one iteration that require huge iterations.
Anyway, just for fun, I created visual map how rolls have been removed.
Yellow: Remained rolls after all iteration
Blue: Removed during iteration (concentration depends on iteration number in which roll was removed)
Another day, another AoC BaseA challenge! Today's puzzle was certainly not the most challenging one I have faced thus far, however it does feel good to be able to finish with a good time and with no assistance whatsoever (no blogs, solution peeking, or asking neighbors at work😂). That being said, I now have nearly the full 24 hours to wait until the next one😢
My solutions:
The macro used in Part 2
My reflection:
Another simple problem! Made a macro this time. Macro-less is potentially possible, but I do not want to deal with that headache.
Happy Solving, y'all!
Edit: I made the edit that I referred to above to optimize the macro portion of my solution. Looks much cleaner now:
I solved it using the Spatial tools.
My solution!
I almost lost my way. Except for it, it is not difficult. And I use some macros which I created last year for mapping problem. It works well.
