Function advent_of_code_2023::day_4::calculate_total_cards
source · fn calculate_total_cards(scratchcards: &Vec<Scratchcard>) -> i32
Expand description
Part 2 solution - each card wins a copy of the next n cards where n is the number of winning matches. This is guaranteed not to overflow the list of available cards.