Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
N = 1;
P=1;
M=0;
hope_correct = 1;
assert(fate(N,P,M)>hope_correct*0.999)
[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 fate (line 2)
In ScoringEngineTestPoint1 (line 5)
In solutionTest (line 3)]
|
2 | Pass |
N = 1;
P=0;
M=1;
hope_correct = 1;
assert(fate(N,P,M)>hope_correct*0.999)
[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 fate (line 2)
In ScoringEngineTestPoint2 (line 5)
In solutionTest (line 5)]
|
3 | Pass |
N=1;
P=1;
M=1;
hope_correct = 0.3679;
assert(fate(N,P,M)>hope_correct*0.999)
[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 fate (line 2)
In ScoringEngineTestPoint3 (line 5)
In solutionTest (line 7)]
|
4 | Pass |
N=2;
P=1;
M=1;
hope_correct = 0.3679;
assert(fate(N,P,M)>hope_correct*0.999)
[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 fate (line 2)
In ScoringEngineTestPoint4 (line 5)
In solutionTest (line 9)]
|
5 | Pass |
N=2;
P=1;
M=2;
hope_correct = 0.1353;
assert(fate(N,P,M)<hope_correct*1.1)
[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 fate (line 2)
In ScoringEngineTestPoint5 (line 5)
In solutionTest (line 11)]
|
6 | Pass |
N=2;
P=2;
M=2;
hope_correct = 0.0183;
assert(fate(N,P,M)<hope_correct*1.1)
%%
[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 fate (line 2)
In ScoringEngineTestPoint6 (line 5)
In solutionTest (line 13)]
|
Get the area codes from a list of phone numbers
417 Solvers
Number of 1s in the Binary Representation of a Number
319 Solvers
201 Solvers
Project Euler: Problem 6, Natural numbers, squares and sums.
782 Solvers
551 Solvers