Cody

Solution 2056311

Submitted on 12 Dec 2019 by kiro avcisi
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   Pass
x = 1; y_correct = [1 1]; assert(isequal(your_fcn_name(x),y_correct))

i = 1 B = 1 i = 2 B = 1 1 i = 3

2   Pass
x = [0 -1 1 0 0 0 1 2]; y_correct = [0 0 -1 -1 1 1 0 0 0 0 0 0 1 1 2 2]; assert(isequal(your_fcn_name(x),y_correct))

i = 1 B = 0 i = 2 B = 0 0 i = 3 B = 0 0 -1 i = 4 B = 0 0 -1 -1 i = 5 B = 0 0 -1 -1 1 i = 6 B = 0 0 -1 -1 1 1 i = 7 B = 0 0 -1 -1 1 1 0 i = 8 B = 0 0 -1 -1 1 1 0 0 i = 9 B = 0 0 -1 -1 1 1 0 0 0 i = 10 B = 0 0 -1 -1 1 1 0 0 0 0 i = 11 B = 0 0 -1 -1 1 1 0 0 0 0 0 i = 12 B = 0 0 -1 -1 1 1 0 0 0 0 0 0 i = 13 B = 0 0 -1 -1 1 1 0 0 0 0 0 0 1 i = 14 B = 0 0 -1 -1 1 1 0 0 0 0 0 0 1 1 i = 15 B = 0 0 -1 -1 1 1 0 0 0 0 0 0 1 1 2 i = 16 B = 0 0 -1 -1 1 1 0 0 0 0 0 0 1 1 2 2 i = 17

Suggested Problems

More from this Author2