Files
2019/days
Parnic 03459bf31a Day 19 solution
I had some trouble with the logic of this puzzle in my head, and the visuals were too large to realistically render for me to spot-check my solution, so I kept getting part 2 wrong. I eventually realized what needed to be done to get the right answer, which was partially the realization that I needed to check +99 instead of +100, and partially that I probably didn't need to check the entire space, just the bounding points (although I'm not entirely certain this is fully correct - I feel like I've seen some rows where a row below is shorter than a row above, which won't work with my solution here).

And then I optimized it with a bisect instead of a linear search. I think the bounds could be narrowed down, but I don't actually know what the min/max values are for all programs, and this is fast enough, so I'm leaving it alone. I'm not even sure that 2500 is a reasonable "too large" high end, honestly.
2022-06-21 01:25:01 -05:00
..
2022-06-06 15:30:58 -05:00
2022-06-13 15:29:18 -05:00
2022-06-13 15:30:17 -05:00
2022-06-09 08:23:34 -05:00
2022-06-13 15:29:18 -05:00
2022-06-13 15:30:10 -05:00
2022-06-13 15:30:17 -05:00
2022-06-13 15:30:17 -05:00
2022-06-13 15:30:17 -05:00
2022-06-13 15:30:17 -05:00
2022-06-13 15:30:17 -05:00
2022-06-13 15:30:17 -05:00
2022-06-13 15:30:17 -05:00
2022-06-21 01:17:31 -05:00
2022-06-13 15:30:17 -05:00
2022-06-13 15:30:17 -05:00
2022-06-13 15:30:17 -05:00
2022-06-14 14:37:06 -05:00
2022-06-18 23:13:19 -05:00
2022-06-21 01:25:01 -05:00