Discussion thread for day 2 of the Advent of Code - https://adventofcode.com/2024/day/2
It's time to use Macro but not Iterative one yet.
Updated x2 (Tool Golf/Optimized version V4):
Updated (Tool Golf/Optimized version V3 - elegant)
Updated (Tool Golf/Optimized version V2):
(My Original Solution) No fancy macros from me yet:
Day 2 was a nice case of ugly solutions that work. Considered a batch macro but chose to brute force it rather than fiddle with inputs.
The trick is
Why sleep when you can earn AoC stars after midnight? 😀
This one definitely challenged me more than I expected for Day 2. The concepts felt straightforward, but my execution was... not. I found myself reworking the logic several times. I have the feeling there's a more straightforward approach, but my tired brain couldn't find it today. Hoping to revisit this one!
@gawa Your solution is so elegant! Thank you for sharing