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

68.18% Correct | 31.82% Incorrect
Last Solution submitted on Apr 24, 2020

Problem Comments

Problem Recent Solvers51

Suggested Problems

More from this Author1

Problem Tags