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.51% Correct | 30.49% Incorrect
Last Solution submitted on Feb 07, 2019

Problem Comments