My Advent of Code Solutions in Rust. The code and algorithms used are optimised to the best of my ability.
For each question, put your input file in input/year${YEAR}/day${DAY}.txt
(e.g. input/year2024/day01.txt).
- To run every solution, run
cargo run. - To run a set of solutions, run
cargo run some_pattern- e.g.
cargo run year2024runs all solutions from 2024.
- e.g.
- For more information run
cargo run -- --help
Additionally, replace run in the above commands with test or bench for
tests and benchmarks respectively.
NOTE: You may want to pass --quiet to the benchmarking program for
cleaner results. For example: cargo bench -- year2025::day10 --quiet.
Many solutions do not have an in-depth explanation. In these cases, the descriptions in the commits for that question may contain more information
You may have noticed the CLAUDE.md file. I've decided that, for this project, Claude will only ever be used to help with debugging or rubber-ducking solutions -- it will not write any code.