Function advent_of_code_2023::day_8::count_steps
source · fn count_steps(
start: &str,
terminal_predicate: fn(_: &str) -> bool,
instructions: &Vec<Instruction>,
network: &HashMap<&'_ str, (&'_ str, &'_ str)>
) -> usize
Expand description
Follow the the list of instructions in a cycle until a destination node is reached