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.
pub fn part1(input: &[RebootStep]) -> i64
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.