Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
xl = 1;
xu = 10
y_correct = 1;
assert(isequal(pandigital_nb(xl,xu),y_correct))
xu =
10
[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 pandigital_nb (line 2)
In ScoringEngineTestPoint1 (line 4)
In solutionTest (line 3)]
|
2 | Pass |
xl = 10;
xu = 99;
y_correct = 2;
assert(isequal(pandigital_nb(xl,xu),y_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 pandigital_nb (line 2)
In ScoringEngineTestPoint2 (line 4)
In solutionTest (line 5)]
|
3 | Pass |
xl = 100;
xu = 999;
y_correct = 6;
assert(isequal(pandigital_nb(xl,xu),y_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 pandigital_nb (line 2)
In ScoringEngineTestPoint3 (line 4)
In solutionTest (line 7)]
|
4 | Pass |
xl = 1000;
xu = 9999;
y_correct = 24;
assert(isequal(pandigital_nb(xl,xu),y_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 pandigital_nb (line 2)
In ScoringEngineTestPoint4 (line 4)
In solutionTest (line 9)]
|
5 | Pass |
xl = 10000;
xu = 99999;
y_correct = 120;
assert(isequal(pandigital_nb(xl,xu),y_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 pandigital_nb (line 2)
In ScoringEngineTestPoint5 (line 4)
In solutionTest (line 11)]
|
6 | Pass |
xl = 1;
xu = 999;
y_correct = 9;
assert(isequal(pandigital_nb(xl,xu),y_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 pandigital_nb (line 2)
In ScoringEngineTestPoint6 (line 4)
In solutionTest (line 13)]
|
7 | Pass |
xl = 1;
xu = 9999;
y_correct = 33;
assert(isequal(pandigital_nb(xl,xu),y_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 pandigital_nb (line 2)
In ScoringEngineTestPoint7 (line 4)
In solutionTest (line 15)]
|
8 | Pass |
xl = 100000;
xu = 999999;
y_correct = 720;
assert(isequal(pandigital_nb(xl,xu),y_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 pandigital_nb (line 2)
In ScoringEngineTestPoint8 (line 4)
In solutionTest (line 17)]
|
Find relatively common elements in matrix rows
644 Solvers
Number of 1s in a binary string
1228 Solvers
67 Solvers
533 Solvers
165 Solvers