Skip to content

ben-ruhlig/advent-of-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 

Repository files navigation

advent-of-code

all code for https://adventofcode.com/

Enter 2024 folder:

cd aoc_2024

Run solutions:

cargo run                      // Run all implemented solutions
cargo run -- -d 1           // Run both parts of day 1
cargo run -- -d 1 -p 1  // Run day 1, part 1

Run tests:

cargo test --lib               // all tests
cargo test --lib day1          // all day 1 tests
cargo test --lib day1p1        // day 1 part 1 tests

Run benchmarks with criterion:

cargo bench                    // run all benchmarks
cargo bench -- day1            // run all day 1 benchmarks
cargo bench -- day1p1          // run single benchmark for day 1 part 1

Note, criterion depends on gnuplot to generate plots, so you may need to install it.

Download input (bash):

./get-input 7

Releases

No releases published

Packages

No packages published