Function aoc::y23d07::y23d07

source ·
pub fn y23d07(input: &str, part: u32) -> u64
Expand description

The solution for the day seven challenge.

TODO

§Example

// probably read this from the input file...
let input = concat!(
    "2345A 2\n2345J 5\nJ345A 3\n32T3K 7\nT55J5 17\nKK677 11\nKTJJT 23\n",
    "QQQJA 19\nJJJJJ 29\nJAAAA 37\nAAAAJ 43\nAAAAA 53\n2AAAA 13\n",
    "2JJJJ 41\nJJJJ2 31",
);
assert_eq!(y23d07(input, 1), 3542);
assert_eq!(y23d07(input, 2), 3667);