mirror of
https://github.com/bertptrs/adventofcode.git
synced 2025-12-25 21:00:31 +01:00
Simplify part 2 a lot, by not actually computing the sums because they do not matter, only the changes do. Also eliminate the allocation overhead while parsing line-by-line input. Fixes the existing clippy error because the offending line no longer exists.
Advent of Code 2021
This folder contains the solution runner for Advent of Code 2021. All days will be solved in Rust, with the goal of having a total time across all puzzles of one second or less.
aoc-2021
Advent of Code 2021 runner
USAGE:
aoc-2021 [OPTIONS] <DAY>
ARGS:
<DAY> Which day to run
OPTIONS:
-2, --part2 Run part 2 instead of part 1
-h, --help Print help information
-i, --input <INPUT> Read input from the given file instead of stdin
-t, --time Print time taken