I refactored most of my Day 10 part 2 code into a ...
# advent-of-code
t
I refactored most of my Day 10 part 2 code into a
KnotHash
object (and it took me forever to realize the magic numbers for length should stay!). The approach I took for finding groups was a BFS where I just flatten them all down to zero and count how many times I do it. Kinda happy with this, I might do some more refactoring before writing it up later today, but at least I have passing tests to work with for now! 🙂