Test | Status | Code Input and Output |
---|---|---|
1 | Fail |
X={'0','a','1','', '';
'1','b','2','', '';
'2','', '','c', '3';
'3','', '','d', '4';
'4','e','1','', '';
'5','', '','d', '6'};
Time=[0;1;2;3;4;5];
a=[1;1;1;1;1;1];
b=[0;2;2;2;2;2];
c=[0;0;3;3;3;3];
d=[0;0;0;4;4;6];
e=[0;0;0;0;1;1];
y_correct=[Time;a;b;c;d;e];
[Time,a,b,c,d,e]=your_fcn_name(X);
assert(isequal([Time;a;b;c;d;e],y_correct));
|
2 | Fail |
X={'0','a','1','', '';
'1','a','2','b', '1';
'2','', '','c', '3';
'3','c','4','d', '4';
'4','b','4','', '';
'5','', '','e', '6'};
Time=[0;1;2;3;4;5];
a=[1;2;2;2;2;2];
b=[0;1;1;1;4;4];
c=[0;0;3;4;4;4];
d=[0;0;0;4;4;4];
e=[0;0;0;0;0;6];
y_correct=[Time;a;b;c;d;e];
[Time,a,b,c,d,e]=your_fcn_name(X);
assert(isequal([Time;a;b;c;d;e],y_correct));
|
Project Euler: Problem 8, Find largest product in a large string of numbers
196 Solvers
85 Solvers
25 Solvers
Calculate the area of a triangle between three points
278 Solvers
Getting the indices from a matrice
265 Solvers