Skip to content

will-lynas/advent-of-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

advent-of-code

My solutions to Advent of Code written in Rust

Running the code

Inputs

Inputs should be placed in the path input/yearXXXX/dayYY.txt

Solutions

  • Run everything: cargo run
  • Specific year: cargo run year2024
  • Specific day: cargo run year2024 day04
  • To run with the release profile (much faster): cargo run --release or cargo run --release -- year2024 day04

Examples

The examples given in the text of each problem are used in tests.

  • Run everything: cargo test
  • Specific year: cargo test year2024
  • Specific day: cargo test year2024::day04
  • Specific part: cargo test year2024::day04::part2

Benchmarks

  • Everything: cargo bench
  • Specific year: cargo bench year2024
  • Specific day: cargo bench year2024::day04
  • Specific part: cargo bench year2024::day04::part2

Acknowledgments

Thank you to ...

About

❄️ My solutions to Advent of Code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages