Function advent_of_code_2021::day_22::volume_active[−][src]

fn volume_active(instructions: &Vec<Instruction>) -> isize
Expand description

Fold the list of instructions into a list of cuboids that describe the entire active area, then sum the volumes of those cuboids to get the total active volume.