Skip to main content

part2

Function part2 

Source
pub fn part2(input: &Vec<Vec<usize>>) -> u64
Expand description

Split the route into 3 segments. The answer is the number of paths in each segment multiplied by each other. Since the input is an acyclic directed graph (DAG), only one of these paths will be possible.