Skip to content

A repo with my solutions for the Advent of Code puzzles.

Notifications You must be signed in to change notification settings

keelus/advent-of-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

Advent of Code 2024 🎄🎁

This repo contains my solutions for different years.

  • 2023 solutions in Golang here.
  • 2024 solutions in Rust here.

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: Chronospatial Computer Here 532ns 224ns -
Day 18: RAM Run Here ⭐⭐ 255µs 113µs 257ms
Day 19: Linen Layout Here ⭐⭐ 64µs 4ms 30ms
Day 20: Race Condition Here ⭐⭐ 76µs 1ms 42ms
Day 21: Keypad Conundrum Here 1µs 6ms -
Day 22: Monkey Market Here ⭐⭐ 30µs 5ms 394ms
Day 23: LAN Party Here ⭐⭐ 584µs 2ms 26ms
Day 24: Crossed Wires Here 244µs 1ms -
Day 25: Code Chronicle Here 293µs 220µs -

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 the sample.txt located in the inputs folder.

--bench=<n>: Optional (default: 0). If set, the puzzles will run n times, outputing only the average timings.

Example output

Output screenshot

About

A repo with my solutions for the Advent of Code puzzles.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published