aoc::year2024::day21

Function pad_combinations

Source
fn pad_combinations() -> FastMap<(char, char), Vec<String>>
Expand description

Compute keypresses needed for all possible transitions for both numeric and directional keypads. There are no distinct pairs shared between the keypads so they can use the same map without conflict.