advent_of_code_2024::day_5

Function validate_update

source
fn validate_update(
    update: &Vec<u32>,
    rules: &HashMap<u32, HashSet<u32>>,
) -> bool
Expand description

For a given Update, check for each page that a page already in the update list does not need to come after the current page.