Cody

Solution 2013170

Submitted on 11 Nov 2019
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Fail
n = 1; s_correct = 1; assert(isequal(sumOfSquares(n),s_correct))

y = 1 s = 2

Assertion failed.

2   Fail
n=3 s_correct=14 assert(isequal(sumOfSquares(n),s_correct))

n = 3 s_correct = 14 y = 1 s = 2 y = 4 s = 8 y = 9 s = 18

Assertion failed.

Suggested Problems