πŸŽ„ Advent of Code 2022

Solutions for Advent of Code in Rust. Based on the project starter template by Felix SpΓΆttel.

Continuous Integration

2022 Results

Day Part 1 Part 2
Day 1 ⭐ ⭐
Day 2 ⭐ ⭐
Day 3 ⭐ ⭐
Day 4 ⭐ ⭐
Day 5 ⭐ ⭐
Day 6 ⭐ ⭐
Day 7 ⭐ ⭐
Day 8 ⭐ ⭐
Day 9 ⭐ ⭐
Day 10 ⭐ ⭐
Day 11 ⭐ ⭐
Day 12 ⭐ ⭐
Day 13 ⭐ ⭐
Day 14 ⭐ ⭐
Day 15 ⭐ ⭐
Day 18 ⭐ ⭐
Day 20 ⭐ ⭐
Day 21 ⭐ ⭐
Day 25 ⭐

Usage

Run solutions for a day

# example: `cargo solve 01`
cargo solve <day>

# output:
#     Running `target/debug/01`
# πŸŽ„ Part 1 πŸŽ„
#
# 6 (elapsed: 37.03Β΅s)
#
# πŸŽ„ Part 2 πŸŽ„
#
# 9 (elapsed: 33.18Β΅s)

solve is an alias for cargo run --bin. To run an optimized version for benchmarking, append the --release flag.

Displayed timings show the raw execution time of your solution without overhead (e.g. file reads).

Run all solutions

cargo all

# output:
#     Running `target/release/advent_of_code`
# ----------
# | Day 01 |
# ----------
# πŸŽ„ Part 1 πŸŽ„
#
# 0 (elapsed: 170.00Β΅s)
#
# πŸŽ„ Part 2 πŸŽ„
#
# 0 (elapsed: 30.00Β΅s)
# <...other days...>
# Total: 0.20ms

all is an alias for cargo run. To run an optimized version for benchmarking, use the --release flag.

Total timing is computed from individual solution timings and excludes as much overhead as possible.

Run all solutions against the example input

cargo test