advent_of_code_2024::day_1

Function sum_diffs

source
fn sum_diffs(pairs: &Vec<(u32, u32)>) -> u32
Expand description

The second part of the solution to part 1, given a sorted list of pairs, sum the distance between them