Function aoc::year2018::day22::scan_cave

source ยท
fn scan_cave(input: &[i32; 3], width: i32, height: i32) -> Grid<Region>
Expand description

Calculate the erosion level for each region. We swap width and height for a small speed boost without affecting the outcome of the shortest path.