I had a lot of trouble because my input was truncated, despite the site warning me about that. Did I listen? I did not.
edit
day 9 discussion
Principal Skinner moment
"Did I miscopy the input?"
"No, it is my algorithm that is wrong"
kinda satisfying to figure out I was correct all along.
Part 2 is not as fast as I'd like (14s), but faster than it was. People on reddit are wittering on about search trees, me I just sling Perl hashrefs around
https://github.com/gustafe/aoc2024/blob/main/d09-Disk-Fragmenter.pl
"Our righteous warriors are only supposed to kill brown people and women, not captains of industry!!"