advent_of_code_2024::day_9

Function fill_space_without_fragmentation

source
fn fill_space_without_fragmentation(
    files: &mut Vec<File>,
    usage: &mut VecDeque<DiskUsage>,
    _space: Space,
    file: File,
)
Expand description

Part 2 space filler - only move files into spaces they fit

This ignores the passed in space as the space to fill needs to be searched for.