Go to file
Parnic 521c576fc1 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:36:55 -05:00
2022-06-06 15:14:31 -05:00
2022-06-21 01:36:55 -05:00
2022-06-21 01:36:55 -05:00
2022-06-21 01:36:55 -05:00
2022-06-18 23:13:19 -05:00
2022-06-18 23:13:19 -05:00
2022-06-21 01:36:55 -05:00
2022-06-07 09:54:20 -05:00

Advent of Code 2019

My solutions to Advent of Code 2019.

Description
No description provided
Readme 1.6 MiB
Languages
Go 100%