Discussion thread for day 3 of the Advent of Code - https://adventofcode.com/2025/day/3
Catching up on posting some of these...
First, determine the length of the string, give it a recordID then parse to rows on every character. Then give it another recordID as battery position.
The iterative macro is as follows for both parts:
This basically calculates how many batteries need to be selected, so the next/first battery must leave at least enough to select the rest. This means if I need two batteries I can't start in the last position, so I can select the max from the first to the second last. Repeat with any number of batteries.
Iterate to the next run to select the max from the remaining batteries.
