Skip to main content

part1

Function part1 

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

We reuse 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.