Ad
  • Default User Avatar

    Very old chain, but for new readers: if you don't pass the 0 at the end, the first value of your array will be taken as the initial value of the accumulator and won't be modified by the (n*n) part.