News for hackers. Stuff that matters.
Re:Adventures in Advent of Code by forrestthewoods on Saturday December 03, 2022 @06:19PM (#33848536)
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/...

Re:Adventures in Advent of Code by sokoloff on Saturday December 03, 2022 @06:24PM (#33848574)
I struggled with that one; thanks for linking your code; I’ll have a look and see the trick I missed.
Re:Adventures in Advent of Code by mcphage on Saturday December 03, 2022 @08:06PM (#33849401)
The key is you didn’t need to keep track of the strings, just the counts.
Re:Adventures in Advent of Code by teh_matt on Saturday December 03, 2022 @07:40PM (#33849176)
I have a writeup of my 2021 solutions at https://programsareproofs.com/articles/aoc_2021.html. I got day 23 down to 31ms using Rust.
Re:Adventures in Advent of Code by orlp on Saturday December 03, 2022 @08:54PM (#33849726)
My 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