aoc2023

Crates.ioaoc2023
lib.rsaoc2023
version0.1.0
sourcesrc
created_at2023-10-26 16:24:42.787125
updated_at2023-10-26 16:24:42.787125
descriptionSolutions to Advent of Code 2023
homepage
repositoryhttps://github.com/NickyMeuleman/scrapyard
max_upload_size
id1014759
size48,705
Nicky Meuleman (NickyMeuleman)

documentation

README

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.

Commit count: 428

cargo fmt