Crate advent_of_code
source · [−]Expand description
This crates provides solutions for Advent of Code problems.
Usage
This crate is on crates.io and can be
used by adding advent_of_code
to your dependencies in your project’s Cargo.toml
.
[dependencies]
advent_of_code = "*"
Example
By specifying a year, day and part together with a specific problem input a solution can be obtained:
use advent_of_code::solve;
let solution = solve(2019, 1, 1, "14");
assert_eq!(solution, Ok("2".to_string()));