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.
Many solutions do not have an in-depth explanation. In these cases, the descriptions in the commits for that question may contain more information