Cody

Solution 1817783

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

A = 1 A = 1 2 A = 1 2 4 A = 1 2 4 8 A = 1 2 4 8 16 A = 1 2 4 8 16 32 A = 1 2 4 8 16 32 64 A = 1 2 4 8 16 32 64 128

Assertion failed.

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

A = 10 A = 10 110 A = 10 110 1210 A = 10 110 1210 13310 A = 10 110 1210 13310 146410 A = 10 110 1210 13310 146410 1610510

Assertion failed.

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

A = 7 A = 7 28 A = 7 28 112 A = 7 28 112 448 A = 7 28 112 448 1792 A = 7 28 112 448 1792 7168

Assertion failed.