Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
a = [93 1147 473 259 629 1591 851 533 2021 86 817 2279 1763 961 1073 205]
len_correct = 5;
d_correct = 43;
[len,d] = divisor_run(a);
assert(isequal(len,len_correct) && isequal(d,d_correct))
a =
Columns 1 through 15
93 1147 473 259 629 1591 851 533 2021 86 817 2279 1763 961 1073
Column 16
205
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
[> In unix (line 32)
In divisor_run (line 2)
In ScoringEngineTestPoint1 (line 4)
In solutionTest (line 3)]
|
2 | Pass |
a = [166 553 1241 869 237 395 1079 1577];
len_correct = 3;
d_correct = 79;
[len,d] = divisor_run(a);
assert(isequal(len,len_correct) && isequal(d,d_correct))
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
[> In unix (line 32)
In divisor_run (line 2)
In ScoringEngineTestPoint2 (line 4)
In solutionTest (line 5)]
|
3 | Pass |
a = [533 205 123 287 451 697 82];
len_correct = 7;
d_correct = 41;
[len,d] = divisor_run(a);
assert(isequal(len,len_correct) && isequal(d,d_correct))
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
[> In unix (line 32)
In divisor_run (line 2)
In ScoringEngineTestPoint3 (line 4)
In solutionTest (line 7)]
|
4 | Pass |
a = [3937 7493 1397 5633 6439 3151 5617 685 7261 5069 ...
959 3973 411 2603 2329 1781 262];
len_correct = 12;
d_correct = 137;
[len,d] = divisor_run(a);
assert(isequal(len,len_correct) && isequal(d,d_correct))
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
[> In unix (line 32)
In divisor_run (line 2)
In ScoringEngineTestPoint4 (line 5)
In solutionTest (line 9)]
|
Swap the first and last columns
12418 Solvers
253 Solvers
Multiples of a Number in a Given Range
214 Solvers
260 Solvers
520 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!