Cody

Solution 1915736

Submitted on 29 Aug 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
v = [1 2]; y_correct = [1 1; 1 2]; assert(isequal(count_to_v(v),y_correct))

s = 1 2 y = 2 1 1 2

Assertion failed.

2   Fail
v = [3 2]; y_correct = [1 1; 1 2; 2 1; 2 2; 3 1; 3 2]; assert(isequal(count_to_v(v),y_correct))

s = 1 2 3 y = 3 2 1 3 1 2 2 3 1 2 1 3 1 3 2 1 2 3

Assertion failed.

Suggested Problems

More from this Author1