Discussion thread for day 4 of the Advent of Code - https://adventofcode.com/2024/day/4
Whoo! I enjoyed this tremendously. I will include a more thorough explanation for my approach below later (in the form of a YouTube video), but for now here is my solution.
Solution Screenshot (Updated to Simplify):
Tool Golf V3 Solution (10 Tools per Part):
Tool Golf V4 (Part 1: 6 Tools, Part 2: 7 Tools):
That was a really neat one. Similar to some of the harder ones last year, but with fewer complications. Part 2 seemed easier than Part 1, though that could just be having done Part 1 first. Interesting to see the different ways people deal with this.
Sharing file this time because it's pretty and I like the solution. Those have not both been true on previous days.
have to use macro this time. diagonal is hard to do without macro
and luckily I save some macro last few years. like split to x and y. and generate the adjacent location.
it save some time to re-build it.
This one was a fun challenge! There's a lot of sloppy design in this first pass, but I'm excited to clean up the logic later this week.
Substring([data],[Engine.IterationNumber],1)+
SubString([Row-1:data],[Engine.IterationNumber]+1,1)+
Substring([Row-2:data],[Engine.IterationNumber]+2,1)+
SubString([Row-3:data],[Engine.IterationNumber]+3,1)
It's challenges like these that make me wish I had an index listing all the things I've built in the previous Advent of Code years to solve the same exact thing... "Alexa, tell me how I solved this 'find the coordinates' problem the last 20 times it's come up in Advent of Code..."
Today's "new Designer features in action" shout-outs: Dark Mode (because I didn't get enough sleep last night getting stuck on Day 3 Part 2, so my eyes already hurt), and Group By in the Record ID tool! ❤️
Okay, time for bed. *NOTE: made some tweaks today and reposted so my solution is more clearly labeled and easier to follow (that seems to go out the window at 1 in the morning...)
My solution! This is messy.
Today it took a long time because I was away for 20-30 minutes in the middle of Part 2. I don't like diagonal...