aoc::year2024::day21

Function parse

Source
pub fn parse(
    input: &str,
) -> (Vec<(String, usize)>, FastMap<(char, char), Vec<String>>)
Expand description

Convert codes to pairs of the sequence itself with the numeric part. The pad combinations are the same between both parts so only need to be computed once.