Problem 1525. Simple problem creating a function from an abstract specification.

MYSTERYFUNCTION3 This takes a vector of numbers v and computes a vector w such the w[i] is the average of v[i] and the previous element. v[1] should be w[1] instead of an average. The function should work properly for any vector of length of at least one.

Solution Stats

69.41% Correct | 30.59% Incorrect
Last Solution submitted on Mar 17, 2020

Problem Comments