Problem 43135. Performance - summation

Created by Massimo Zanetti in Community

Given a vector of natural numbers

x = [1,2,3,...,N]

compute the sum of its elements by not stressing the machine too much :)

HINT: maybe sum(1:N) won't pass the test suite..

Solution Stats

59.18% Correct | 40.82% Incorrect
Last solution submitted on Feb 14, 2019