Solutions for Advent of Code in Rust.
Day | Part 1 | Part 2 |
---|---|---|
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 | Part 1 | Part 2 |
---|---|---|
Day 1 | 51.2µs |
81.2µs |
Day 2 | 173.6µs |
374.8µs |
Day 3 | 358.7µs |
323.8µs |
Day 4 | 5.7ms |
109.3µs |
Day 5 | 1.5ms |
35.6ms |
Day 6 | 611.2µs |
178.9ms |
Day 7 | 1.7ms |
86.1ms |
Day 8 | 55.8µs |
136.5µs |
Day 9 | 942.7µs |
122.7ms |
Day 10 | 530.9µs |
284.2µs |
Day 11 | 238.7µs |
12.7ms |
Day 12 | 7.5ms |
8.2ms |
Day 13 | 363.7µs |
344.0µs |
Day 14 | 245.3µs |
127.9ms |
Day 15 | 236.3µs |
984.1µs |
Day 16 | 2.3ms |
5.9ms |
Total: 603.15ms
cargo scaffold <day>
cargo download <day>
cargo solve <day>
Append the --submit <part>
option to the solve
command to submit your solution for checking.
cargo all
cargo time <day> [--all] [--store]
cargo test
To run tests for a specific day, append --bin <day>
, e.g. cargo test --bin 01
. You can further scope it down to a specific part, e.g. cargo test --bin 01 part_one
.
cargo read <day>
During december, the today
shorthand command can be used to:
- scaffold a solution for the current day
- download its input
- and read the puzzle
in one go.
cargo today