Cody

Solution 1995659

Submitted on 29 Oct 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 = 3; y_correct = [4 4 4]; assert(isequal(fours(n),y_correct))

y = 4 4 4 4 4 4 4 4 4

Assertion failed.

2   Fail
n = 5.5; y_correct = [4 4 4 4 4 4]; assert(isequal(fours(n),y_correct))

y = 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4

Assertion failed.

3   Fail
n = 7; y_correct = [4 4 4 4 4 4 4]; assert(isequal(fours(n),y_correct))

y = 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4

Assertion failed.

4   Fail
n = -2; y_correct = [4 4]; assert(isequal(fours(n),y_correct))

y = 4 4 4 4 4 4

Assertion failed.