3 ms·
Is that the right day? My code for 2021:14 runs in 440 microseconds for both parts. 2021:23:2 is the only day I couldn't get under 1 second. https://github.com
by forrestthewoods 4y ago
Is that the right day? My code for 2021:14 runs in 440 microseconds for both parts. 2021:23:2 is the only day I couldn't get under 1 second.
https://github.com/forrestthewoods/aoc2021/blob/master/rust/src/lib.rs#L1730 https://github.com/forrestthewoods/aoc2021/blob/master/rust/...
- sokoloff 4y agoI struggled with that one; thanks for linking your code; I’ll have a look and see the trick I missed.
- mcphage 4y agoThe key is you didn’t need to keep track of the strings, just the counts.
- teh_matt 4y agoI have a writeup of my 2021 solutions at https://programsareproofs.com/articles/aoc_2021.html https://programsareproofs.com/articles/aoc_2021.html. I got day 23 down to 31ms using Rust.
- orlp 4y agoMy 2021 day 23 runs in 5 milliseconds for both parts using A* with a custom heuristic: https://github.com/orlp/aoc2021/blob/master/src/bin/day23.rs https://github.com/orlp/aoc2021/blob/master/src/bin/day23.rs