Function mbryant_aoc2021::day18::reduce_number
source · [−]pub fn reduce_number(number: &mut Number)
Expand description
Destructively reduce the given number.
TODO: This isn’t at all efficient, but this problem is fast enough that I haven’t bothered optimizing. My guess is rearranging elements of the vector is the bottleneck.