Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
A = 1;
iterations = 4;
y_correct = [1 3 7 15 31];
assert(isequal(your_fcn_name(A,iterations),y_correct))
|
2 | Pass |
A = 1;
iterations = 10;
y_correct = [1 3 7 15 31 63 127 255 511 1023 2047];
assert(isequal(your_fcn_name(A,iterations),y_correct))
|
3 | Pass |
A = 2;
iterations = 10;
y_correct = [2 5 11 23 47 95 191 383 767 1535 3071];
assert(isequal(your_fcn_name(A,iterations),y_correct))
|
4 | Pass |
A = 3;
iterations = 10;
y_correct = [3 7 15 31 63 127 255 511 1023 2047 4095];
assert(isequal(your_fcn_name(A,iterations),y_correct))
|
5 | Pass |
A = 5;
iterations = 10;
y_correct = [5 11 23 47 95 191 383 767 1535 3071 6143];
assert(isequal(your_fcn_name(A,iterations),y_correct))
|
6 | Pass |
A = 7;
iterations = 8;
y_correct = [7 15 31 63 127 255 511 1023 2047];
assert(isequal(your_fcn_name(A,iterations),y_correct))
|
All your base are belong to us
425 Solvers
Remove the two elements next to NaN value
310 Solvers
Set the array elements whose value is 13 to 0
753 Solvers
395 Solvers
271 Solvers