Awesome
Advent of Code 2024 🎄🎁
This repo contains my solutions for different years.
Days, stars and solutions
Benchmarks are run on an "Intel i7-10700K @ 5.100Ghz CPU". Use the
--release
flag when benchmarking a day.
Day | Solution | Stars | Parse benchmark | Part 1 benchmark | Part 2 benchmark |
---|---|---|---|---|---|
Day 1: Historian Hysteria | Here | ⭐⭐ | 63µ | 264ns | 50µs |
Day 2: Red-Nosed Reports | Here | ⭐⭐ | 142µs | 7µs | 57µs |
Day 3: Mull It Over | Here | ⭐⭐ | 65µs | 345ns | 466ns |
Day 4: Ceres Search | Here | ⭐⭐ | 7µs | 1ms | 360µs |
Day 5: Print Queue | Here | ⭐⭐ | 201µs | 395µs | 797µs |
Day 6: Guard Gallivant | Here | ⭐⭐ | 36µs | 251µs | 1s |
Day 7: Bridge Repair | Here | ⭐⭐ | 455µs | 578µs | 84ms |
Day 8: Resonant Collinearity | Here | ⭐⭐ | 21µs | 116µs | 92µs |
Day 9: Disk Fragmenter | Here | ⭐⭐ | 1ms | 520ms | 332ms |
Day 10: Hoof It | Here | ⭐⭐ | 65µs | 489µs | 436µs |
Day 11: Plutonian Pebbles | Here | ⭐⭐ | 1µs | 582µs | 32ms |
Day 12: Garden Groups | Here | ⭐⭐ | 221µs | 7ms | 11ms |
Day 13: Claw Contraption | Here | ⭐⭐ | 158µs | 3µs | 6µs |
Day 14: Restroom Redoubt | Here | ⭐⭐ | 94µs | 180µs | 790ms |
Day 15: Warehouse Woes | Here | ⭐⭐ | 210µs | 130µs | 3ms |
Day 16: Reindeer Maze | Here | ⭐⭐ | 20µs | 3s | 6s |
Day 17: Reindeer Maze | Here | ⭐ | 532ns | 224ns | - |
Day 18: RAM Run | Here | ⭐⭐ | 255µs | 113µs | 257ms |
Day 19: Linen Layout | Here | ⭐⭐ | 64µs | 4ms | 30ms |
Run it yourself
Run a day
While being at the 2024 directory:
cargo run -- [--day <day>] [--sample] [--bench <n>]
--day=<1-25> Optional (default:
1
). Specifies the day to execute the puzzle(1-25)
--sample: Optional (default:
false
). If set, the input file will be thesample.txt
located in the inputs folder.
--bench=<n>: Optional (default:
0
). If set, the puzzles will runn
times, outputing only the average timings.