Discussion thread for day 11 of the Advent of Code - https://adventofcode.com/2024/day/11
today challenge remind me about 2021 day 6 challenge. It look alike.
Absolutely loved this problem. Part 2 took me a few minutes to realize the trick that changes the problem from being unsolvable to being a walk in the park (Glad I got to use some interface tools this time!):
Need some trick on part2 to finish calculation.
Solved!
Today is straightforward, too.
Got hint from here. 😁
Took me longer than I wish to admit to figure out the trick to part two, and also just let it run in the blind hope it would be fine, knowing that it wouldn't be...
Got there in the end!
Spent 10 minutes iterating with the same macro for Part 2, with my computer sounding like it was going to take off before I worked it out! Ran in 1.5 seconds for part 1 and 2.
Spoilers ahead:
Part 2, added Grouping logic and kept a record of how many times a number exists in the data. This massively reduced processing time as the number of records do not balloon as they do with the first macro.
My workflow is not good...
Day 11 & another 2 stars down! Despite my defiance in the WhatsApp group, I did indeed end up optimising this in order to save my laptop.