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