Keeping track of solutions to various puzzles from https://adventofcode.com/
Advent of Code is an Advent calendar of small programming puzzles for a variety of skill sets and skill levels that can be solved in any programming language you like. People use them as a speed contest, interview prep, company training, university coursework, practice problems, or to challenge each other.
You don't need a computer science background to participate - just a little programming knowledge and some problem solving skills will get you pretty far. Nor do you need a fancy computer; every problem has a solution that completes in at most 15 seconds on ten-year-old hardware.
There are two ways of running particular solution. One can either go to the directory associated with the given day, for example:
cd 2022/day01
and run it from there:
cargo run --release
Alternatively, there's a dedicated solution-runner
binary that's can run any sub-solution based on arguments provided.
For example
./solution-runner --year 2022 --day 1
solutions from 2019, 2020 and 2021 are not guaranteed to run correctly, as they got imported from old repositories and have not been written with the current runner framework in mind.
Run the following command to generate the template:
cargo run -p aoc-init -- --year $YEAR --day $DAY