Skip to content

JosefKuchar/AoC-2024

Repository files navigation

🎄 Advent of Code 2024

Solutions for Advent of Code in Rust.

2024 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 16

Benchmarks

Day Part 1 Part 2
Day 1 51.2µs 81.2µs
Day 2 173.6µs 374.8µs
Day 3 358.7µs 323.8µs
Day 4 5.7ms 109.3µs
Day 5 1.5ms 35.6ms
Day 6 611.2µs 178.9ms
Day 7 1.7ms 86.1ms
Day 8 55.8µs 136.5µs
Day 9 942.7µs 122.7ms
Day 10 530.9µs 284.2µs
Day 11 238.7µs 12.7ms
Day 12 7.5ms 8.2ms
Day 13 363.7µs 344.0µs
Day 14 245.3µs 127.9ms
Day 15 236.3µs 984.1µs
Day 16 2.3ms 5.9ms

Total: 603.15ms


Usage

➡️ Scaffold a day

cargo scaffold <day>

➡️ Download input for a day

cargo download <day>

➡️ Run solutions for a day

cargo solve <day>

Submitting solutions

Append the --submit <part> option to the solve command to submit your solution for checking.

➡️ Run all solutions

cargo all

➡️ Benchmark your solutions

cargo time <day> [--all] [--store]

➡️ Run all tests

cargo test

To run tests for a specific day, append --bin <day>, e.g. cargo test --bin 01. You can further scope it down to a specific part, e.g. cargo test --bin 01 part_one.

➡️ Read puzzle description

cargo read <day>

➡️ Scaffold, download & read the current aoc day

During december, the today shorthand command can be used to:

  • scaffold a solution for the current day
  • download its input
  • and read the puzzle

in one go.

cargo today

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages