#AdventOfCode Day 5eva
Oh my, somehow I convinced myself there would be page numbers _not_ tied to a rule, and I got wrapped up in managing that until I re-read the problem. I probably over-engineered by using a doubly-linked structure when 2 maps would've sufficed...
https://github.com/pantzon/advent-of-code/blob/main/2024/days/day5.go
Oh my, somehow I convinced myself there would be page numbers _not_ tied to a rule, and I got wrapped up in managing that until I re-read the problem. I probably over-engineered by using a doubly-linked structure when 2 maps would've sufficed...
https://github.com/pantzon/advent-of-code/blob/main/2024/days/day5.go
Comments
So I did a whole dependency-graph-based recursive sort for nothing! XD