Cody

Solution 1928414

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

t1 = 1 t1 = 1 t1 = 1 t1 = 1 t1 = 1 t1 = 1 t1 = 1 y = 1

Assertion failed.

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

t1 = 100 t1 = 1000 t1 = 10000 t1 = 100000 t1 = 1000000 y = 1000000

Assertion failed.

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

t1 = 21 t1 = 63 t1 = 189 t1 = 567 t1 = 1701 y = 1701

Assertion failed.

Suggested Problems

More from this Author100