Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
forrestthewoods
on Dec 3, 2022
|
parent
|
context
|
favorite
| on:
Adventures in Advent of Code
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/...
orlp
on Dec 4, 2022
|
next
[–]
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
teh_matt
on Dec 4, 2022
|
prev
|
next
[–]
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.
sokoloff
on Dec 3, 2022
|
prev
[–]
I struggled with that one; thanks for linking your code; I’ll have a look and see the trick I missed.
mcphage
on Dec 4, 2022
|
parent
[–]
The key is you didn’t need to keep track of the strings, just the counts.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
https://github.com/forrestthewoods/aoc2021/blob/master/rust/...