Discussion thread for day 8 of the Advent of Code - https://adventofcode.com/2024/day/8
Either Day 8 was just WAY easier (once you decipher what is being asked) than the last few problems OR I am quickly acknowledging the benefits of doing these in the middle of the day on a good night's rest 😀.
Almost went for macro again, turns out no need, just need a correct join does the job.
Struggle with the logic for this at first but it wasn't so horrendous in the end! Very glad to get the second star. Solved the entire day 8 whilst my day 9 part two was running...!
Done without macro.
not sure why it is working. but it worked 😆
Solved! I went with brute force for Part 2 since I needed that square for the bingo game
I originally skipped this one as I didn't have enough time at the weekend, but came back to it today and was able to figure out how to approach the question.
The first part was quite simple, only requiring 1 antinode each at the positive and negative end of the antenna pairing.
For Part 2, I used Generate rows within the bounds of 1 and max_row to ensure that new antinodes were generated within a restricted range (which was filtered further to remove erroneous antinodes once column positions were calculated also). Wasn't entirely sure it would work so was pleasantly surprised when the answer was correct :)