Nim
Pretty easy one today. Made a Pyramid
type to hold the values and their layers of diffs, and an extend
function to predict the next value. For part 2 I just had to make an extendLeft
version of it that inserts and subtracts instead of appending and adding.
Huh, I'm going to have to try that at some point. It's even got nim support.
Link for the lazy