Cody

Solution 1943951

Submitted on 20 Sep 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
x = 100; y_correct = cumsum(1:13); assert(isequal(TriBeNum(x),y_correct))

a = 14.6510 y = 1 2 3 4 5 6 7 8 9 10 11 12 13

Assertion failed.

2   Fail
x = 1000; y_correct = cumsum(1:44); assert(isequal(TriBeNum(x),y_correct))

a = 45.2242 y = Columns 1 through 30 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 Columns 31 through 44 31 32 33 34 35 36 37 38 39 40 41 42 43 44

Assertion failed.

Suggested Problems

More from this Author57