Advent of Code
Advent of Code is an annual Advent calendar of small programming puzzles for a
variety of skill sets and skill levels that can be solved in any programming
language you like.
This repository is a collection of possible solution to each puzzle using the
Rust programming language.
$ git clone https://github.com/logansquirel/advent_of_code.git
$ cd aoc_yyyy/day_dd
$ cargo run --quiet --release < input/input.dat
Advent of Code yyyy-dd
------ Part 1 ------
Answer 1
------ Part 2 ------
Answer 2
yyyy
with the four digits yeardd
with the two digits day (0-padded)input/input.dat
with the path to your personalThis repository provides a Rust template
(aoc_yyyy/day_dd
) for advent of code.
$ tree aoc_yyyy
aoc_yyyy
└── day_dd
├── Cargo.toml # Cargo configuration file
├── input
│ └── input.dat # Puzzle input
├── readme.md
├── src
│ ├── lib.rs # Puzzle solutions and unit tests
│ └── main.rs # Puzzle main
└── tests
└── aoc_yyyy_day_dd.rs # Puzzle answers tests
4 directories, 6 files
yyyy
occurences with the four digits yeardd
occurences with the two digits day (0-padded)lib.rs
aoc_yyyy_day_dd.rs
For questions and issues, open an issue
here.
Contributions and Pull Requests (PR) are welcome.