Function aoc::year2021::day22::part1

source ยท
pub fn part1(input: &[RebootStep]) -> i64
Expand description

We re-use the logic between part one and two, by first intersecting all cubes with the specified range. Any cubes that lie completely outside the range will be filtered out.