Discussion thread for day 10 of the Advent of Code - https://adventofcode.com/2025/day/10
Day 10
P2
I think the R tool, Python tool and Run command tool are obviously restricted in Base A.
It's true that the Optimization tool is an R-based tool. However, I think the imporant thing is that R, Python and Run Command tool allow free programming. The R-based tool merely provides a specific function for Alteryx Designer (how that tool is implemented is solely a matter of Alteryx).
However, it is free not to use R-based tool. I would like to call it as Pur Base A. That way makes AoC much more difficult to solve, but also much more rewarding🎉
I was expecting it to keep getting tougher, but this was certainly a step up. Took a couple of long nights, but finally got a solution to part two without using the optimise tool! I will post more of a write-up & neater workflow at a later date, but here's my (relatively) raw solution. Total run time for parts one and two is just under 1 minute in the workflow's current state. A big shout out to @Hub119, I did download your optimise tool solution so that I had a target "button presses per machine", I don't think I would have arrived at my own solution without this.
And Now.... The moment that a couple people may have been waiting for.... a pure base-A solution to Day 10 Parts 1 & 2. This problem was brutal. I don't think I could have solved this without looking at other's code based solutions to learn that many struggled (outside of Alteryx users), and there were no sneaky insights that could solve this problem. There are certainly optimizations that I made use of to solve that several users mentioned on the Reddit AoC Solutions page.
This was remarkably difficult but so satisfying to finally solve. From a workflow that took over 4 hours to solve the smaller cases (up to 9 buttons) and would have destroyed my computer in attempting to solve the entire thing, to a workflow that gave me an answer in 1 minutes and 30 seconds, and I finished before Day 12 released to end this year's AoC!
Happy Solving, for the final time this AoC (This is my last AoC solution post for 2025)!
Part1 first.
a very good example to use/learn Binary formula (or so call bitmask (?)), where know as fastest operator.
Part2, No license for Optimization tool Orz.
Take forever with P1 methods. (even just 1st records)
convert (3), (1,3) -> 1000 and 1010 where equal to 8 and 10
toggle -> by using Xor it will change the 1 to 0 and 0 to 1. it can done with 1 row,1 column and 1 formula tool.
macro:
At the end, I was able to solve part2 without the Optimization tool, but it took 2 hours running. 2 hours might sound too long, however, if you already tried part2 without the Optimization tool, you know "finishing calculation" itself is still worth enough, I believe.
Anyway, I did it, and completed AoC2025.
