Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 1.26 KB

README.md

File metadata and controls

41 lines (26 loc) · 1.26 KB

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 ...