Function advent_of_code_2023::day_9::extrapolate_sequence_forwards
source · fn extrapolate_sequence_forwards(sequence: &Vec<i64>) -> i64
Expand description
Unwrap the sequence of delta sequences to extrapolate the next value in the original sequence. This is equivalent to the sum of the last value in each of the delta sequences