Discussion thread for day 4 of the Advent of Code - https://adventofcode.com/2024/day/4
Way overthought part 2; going down the rabbit hole of matrix manipulation...when I finally realized a few formulas would work nicely.
Could be more elegant, but I'm happy with my stars. 🌟🌟🎅
Question 2 was toooooooo difficult
Restarted like 5 times with different approaches cause I could not figure out how to build the matrix but found a neat way in the community!
At first I made messy and ugly WF but now I refined it with 'Spatial Analysis' version as fun analysis.
When it comes to X-Y coordinates, I cannot stop using spatial analysis.
That was tough! Horizontal and Vertical were pretty nice, but I had to really think about how to transform the data for those diagonals.
I learnt a new function today too: Regex_CountMatches(), which counts the occurrence of a pattern inside a string. By transforming the data for each of the directions and concatenating new strings, I could use the function to get accurate counts :)