Crates.io | aoc2023 |
lib.rs | aoc2023 |
version | 0.1.0 |
source | src |
created_at | 2023-10-26 16:24:42.787125 |
updated_at | 2023-10-26 16:24:42.787125 |
description | Solutions to Advent of Code 2023 |
homepage | |
repository | https://github.com/NickyMeuleman/scrapyard |
max_upload_size | |
id | 1014759 |
size | 48,705 |
Solutions to Advent of Code 2023 in the Rust programming language
cargo run <day> <part>
<part>
is optional, omitting it will solve both parts.
eg:
cargo run 3 1
to run day 3, part 1cargo run 3
to run day 3, both partsAnswers are written to the terminal along with a total runtime.
cargo bench <day>
eg:
cargo bench 3
to bench day 3Benchmarks:
Note: I implement a method that avoids duplicate work between part 1 and part 2 sometimes, so benchmarking both parts is NOT the same as adding part1 to part 2.