Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
global gRV;
gRV = [];
N = 10;
gRV_correct = [3 5 7 9];
counting_loop(N);
code = textread('counting_loop.m', '%s');
assert(isequal(gRV, gRV_correct) && strcmp(code(5), 'for'));
|
2 | Pass |
%%
global gRV;
gRV = [];
N = 5;
gRV_correct = [3 5];
counting_loop(N);
code = textread('counting_loop.m', '%s');
assert(isequal(gRV, gRV_correct) && strcmp(code(5), 'for'));
|
3 | Pass |
%%
global gRV;
gRV = [];
N = 3;
gRV_correct = [3];
counting_loop(N);
code = textread('counting_loop.m', '%s');
assert(isequal(gRV, gRV_correct) && strcmp(code(5), 'for'));
|
4 | Pass |
%%
global gRV;
gRV = [];
N = 0;
gRV_correct = [];
counting_loop(N);
code = textread('counting_loop.m', '%s');
assert(isequal(gRV, gRV_correct) && strcmp(code(5), 'for'));
|
5 | Pass |
%%
global gRV;
gRV = [];
N = 39;
gRV_correct = [3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39];
counting_loop(N);
code = textread('counting_loop.m', '%s');
assert(isequal(gRV, gRV_correct) && strcmp(code(5), 'for'));
|
36206 Solvers
Read a column of numbers and interpolate missing data
792 Solvers
1579 Solvers
First non-zero element in each column
463 Solvers
533 Solvers