Go to file
Parnic 68ca26e3aa Optimizations and minor cleanups
Thanks to Go's profiling tools, I discovered that the memoization, while it was cutting down runtime significantly, was itself slow because it was using arrays. Swapping those arrays out for maps made a _massive_ difference (4s/14s part1/part2 to 1ms/2ms with no other changes). Lesson learned. Again.

The IntHeap rename was long overdue since I took the code originally from Go's sample docs for priority queues.
2022-06-18 22:56:48 -05:00
2022-06-06 15:14:31 -05:00
2022-06-18 22:56:48 -05:00
2022-06-15 22:05:01 -05:00
2022-06-15 22:05:01 -05:00
2022-06-06 15:14:31 -05:00
2022-06-18 01:18:30 -05:00
2022-06-18 01:18:30 -05:00
2022-06-15 22:05:01 -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%