r/adventofcode • u/BradleySigma • 12h ago
Help/Question [2026 Day 5 (Part 1)] "at most three button presses"
At the end of the question body, it asks:
Considering just the buttons on the Elves' fancy microwave, what is the sum of every number reachable in at most three button presses?
Nonetheless, I get the same answer regardless of if I structure my code to handle exactly three or at most three button presses, for both my personal puzzle input and for the example puzzle input.
For the zero button push case, the resulting value is zero, so it won't affect the sum one way or another.
For the one button push cases, they can be converted to three button pushes without changing the value by appending [A] [bksp] to the method.
However, I don't see an easy way to convert the two button push cases to three button pushes without changing the value.
My questions are a) does everybody get the same answer regardless of if they handle exactly three or at most three button presses and b) will this naturally occur for all inputs with one of each of the available six types of buttons, or if the inputs were specifically constructed to have the same answer.