/advent-of-code-2022

Solutions to the Advent Of Code 2022 puzzles, written in Rust

Primary LanguageRust

Advent of Code 2022

CI

My solutions to the Advent of Code 2022 puzzles, written in Rust.

Goals

My main goal is not to create the quickest / shortest / fastest solution ever, but to create nice, idiomatic, readable and maintainable Rust code with suitable performance.

Each day's puzzle solver is implemented in a separate binary. All puzzle solvers are developed in a test-driven approach, i.e. examples from puzzle descriptions are used in unit tests to verify correct implementation (cargo test). Running a solver uses the (personalized) puzzle input to find the solution (cargo run).

Previous years

  • 2021 - Rust 2021 using std iterators
  • 2020 - Rust 2018 using std iterators
  • 2019 - Rust 2018 using async futures and streams with async-std v1
  • 2017 - Rust 2015 using nom v3
  • 2016 - Rust 2015 using nom v2, onig v1
  • 2015 - Rust 2015 using nom v1, onig v1