Discussion thread for day 11 of the Advent of Code - https://adventofcode.com/2025/day/11
Feel a lot better about that one after yesterday.
Part 1 was straightforward. Trace the path. I expected a twist in the real data. In particular, I was on the lookout for loops but there really didn’t seem to be anything.
Part2 was the familiar "now do it with too much data."
The secret here is pruning and merging. You have to track whether you’ve visited dac and/or fft but once you allow for those two paths that get to the same place don’t have to be tracked separately, they can just be tracked as one path that counts double. Merging paths that reach the same point takes the execution from functionally infinite to seconds.
Final, Macro pasted into primary for picture
Slightly different approach to the problem from @ScottLewis, but same general insights:
Macro:
Happy Solving, y'all! Now back to Day 10 for me :/
One day to go.
My WF is configured based on 'what I already know' about dataset that all path follow svr=>...=>fft=>...=>dac....=>out
You don't need memorize all path but summarize them by the current node and sum up the number of path in each iteration.
Nice and simple one today... assuming you know how to optimize part 2...
Today's problem seemed like one where the data volume would explode, so I designed my workflow to avoid that, and I got the answer on the first try.
Maybe this one suited me but it's probably the quickest I've completed any challenge this year.
Part1: Starting with "you", simply find the next move, iterate, until you find "out". Initially failed to read the question and realise we only cared about starting with you and accidentally got the right answer for the test data by summarising into unique ending combinations.
Part 2: Very similar approach, but with different starting and end point (SVR and OUT), and need to keep track if you meet two other points along the way in any order (DAC and FFT). This was the part designed to catch you out as it quickly balloons into loads of common points, so I added a counter to keep track of how many I had. Ran pretty much instantaneously for the data set.
Day 11
