phord / AdventOfCode2022

This year in rust.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Advent of Code 2022 solutions

  • Run the last solution with: cargo run --release

  • Run all solutions with: cargo run --release -- -a

  • Run the benchmarks with: cargo bench --bench aoc-bench

Implementing solutions

Solutions are in src/day*.rs. See src/example.rs for an example with unit tests.

  1. Uncomment the Part1 code, implement it and run the test.
  2. When it works, run the Part1 code with real input using cargo run --release
  3. Repeat for Part2

Unit testing:

Store sample data in the code directly. It's not available to download. Assign expected values to ANS1 and ANS2.

About

This year in rust.

License:Apache License 2.0


Languages

Language:Rust 100.0%