Advent of Code 2021
My solutions to the AOC 2021 problems in Rust.
Solutions
Task | Status |
---|---|
Day 1 |
|
Day 2 |
|
Day 3 |
|
Day 4 |
|
Day 5 |
|
Day 6 |
|
Day 7 |
|
Day 8 |
|
Day 9 |
|
Day 10 |
|
Day 11 |
|
Day 12 |
|
Day 13 |
|
Day 14 |
|
Day 15 |
|
Day 16 |
|
Day 17 |
|
Day 18 |
|
Day 19 |
|
Day 20 |
|
Day 21 |
|
Organization
Each day's solutions are implemented in a separate module such as day_01.rs
. This module usually contains the examples that explain the problem as unit tests.
For each day, there is an integration test, named for example day_01.rs
in the tests
subdirectory which makes sure that the functionality in the different modules produce the correct solutions when applied to the provided input files.
To run the tests for a specific day, run for example
cargo t --release --test day_01