Cody

Solution 1815004

Submitted on 14 May 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   Pass
t1=1; r=1; n=7; y_correct = 7; assert(isequal(your_fcn_name(t1,r,n),y_correct))

S = 1 S = 2 S = 3 S = 4 S = 5 S = 6 S = 7 y = 7

2   Fail
t1=10; r=10; n=5; y_correct = 111110; assert(isequal(your_fcn_name(t1,r,n),y_correct))

S = 10 S = 20 S = 120 S = 1120 S = 11120 y = 11120

Assertion failed.

3   Fail
t1=7; r=3; n=5; y_correct = 847; assert(isequal(your_fcn_name(t1,r,n),y_correct))

S = 7 S = 10 S = 19 S = 46 S = 127 y = 127

Assertion failed.

Suggested Problems

More from this Author100