This crates provides solutions for Advent of Code problems.
This crate is on crates.io and can be
used by adding
advent_of_code to your dependencies in your project’s
[dependencies] advent_of_code = "*"
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()));