Crate advent_of_code[][src]

Expand description

This crates provides solutions for Advent of Code problems.


This crate is on and can be used by adding advent_of_code to your dependencies in your project’s Cargo.toml.

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()));


Returns the solution for the specified given problem and input.

A version of solve that takes strings as arguments and parses them to the required types.