I am trying to solve the AoC puzzles using techniques and principles I am interest at the moment.
I use a test && commit || revert
workflow
encouraging tiny steps.
I am trying to explore what difference line length limits make. And to make a point of it I am confining myself to 50 characters per line.
This puzzle was solved with a straight forward recursive function with a base case.
I ended up solving this using two agents keeping track of which "change-in-frequency" is next, and what frequencies we've hit already.