Function aoc::year2023::day17::part2

source ยท
pub fn part2(grid: &Grid<i32>) -> i32
Expand description

Search with a minimum of 4 and maximum of 10 steps in any direction. Using const generics to specify the limits allows the compiler to optimize and unroll loops, speeding things up by about 25%, versus specifying the loop limits as regular parameters.