#advent-of-code #aoc

nightly bin+lib aoc2023

Solutions to Advent of Code 2023

1 unstable release

0.1.0 Oct 26, 2023

#31 in #advent-of-code

MIT license

28KB
1K SLoC

Solutions to Advent of Code 2023 in the Rust programming language

Using the CLI to solve days

cargo run <day> <part>

<part> is optional, omitting it will solve both parts.

eg:

  • cargo run 3 1 to run day 3, part 1
  • cargo run 3 to run day 3, both parts

Answers are written to the terminal along with a total runtime.

Benchmarking

cargo bench <day>

eg:

  • cargo bench 3 to bench day 3

Benchmarks:

  1. parsing
  2. part 1
  3. part 2
  4. both parts combined

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.

Dependencies

~460KB