My solutions to Eric Wastl's Advent of Code :)
This repo is a Cargo workspace containing multiple crates that comprise my solutions. The workspace is organized as follows:
aoc
: top-level wrapper crate with a runnable binary.aoc-meta
: core types and traits for solving Advent of Code problems, such asPart
(Advent of Code problems tend to have two parts).aoc-common
: types and traits common between multiple problems, such asTryFromStr
(which allows parsing string slices into structs containing references to the original slice).aoc-2015
,aoc-2016
,aoc-2017
,aoc-2018
,aoc-2019
,aoc-2020
,aoc-2021
,aoc-2022
,aoc-2023
, andaoc-2024
: contain implementations of the Advent of Code problems from each respective year.
To comply with Eric's rules about copying, I don't copy any text from the problems in my solutions or provide my puzzle inputs.
To run the aoc
binary, run just run <YEAR> <DAY> <PART>
. You can provide your puzzle input via stdin (default) or by providing a fourth argument containing the filepath of your input.