Skip to content

Advent of Code solutions, mostly in Python/Rust, for AoC 2024.

Notifications You must be signed in to change notification settings

AlexJones0/Advent-of-Code-2024

Repository files navigation

Advent of Code 2024

Repository storing my solutions for Advent of Code 2024. Solutions are in whatever language I feel like using that day - for this year I've done every day in both Python and Rust.

Running

Each day is stored in a separate Day XX/language/sol.ext file.

For python, you can run an individual day by running e.g. python3 'Day\ XX/Python/sol.py. All solutions can be run in one go using python3 all.py.

For Rust, you can run an individual day by running e.g. cargo run -- --day XX All solutions can be run in one go by running normally, e.g. cargo run.

Runtime

Timings on my system (i5-1135G7 @ 2.40GHz):

  • Python: 9.126 s (± 0.178 s) using hyperfine --warmup=5 'python3 all.py'
  • Rust: 411.7 ms (± 8.5 ms) using hyperfine --warmup=5 'cargo run --release'
    • With fat LTO and 1 codegen unit: 314.2 ms (± 5.9 ms)

About

Advent of Code solutions, mostly in Python/Rust, for AoC 2024.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published