pub fn solution_improved<S: AsRef<str>, I: Iterator<Item = S>>(
    elves: usize,
    lines: I
) -> Result<usize>
Expand description

From understanding what the max was actually doing is a Binary Heap. Rust as a binary heap impl that I am going to use!