This really doesn't solve the problem it's just gaming the results.
Boo.
Ooooooh this is evil.
Pathetic
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
nmax = 10;
pmax = 52;
assert(isequal(peakOfPeaks(nmax),pmax))
a =
52
|
2 | Pass |
%%
nmax = 30;
pmax = 9232;
assert(isequal(peakOfPeaks(nmax),pmax))
a =
9232
|
3 | Pass |
%%
nmax = 100;
pmax = 9232;
assert(isequal(peakOfPeaks(nmax),pmax))
a =
9232
|
4 | Pass |
%%
nmax = 1000;
pmax = 250504;
assert(isequal(peakOfPeaks(nmax),pmax))
a =
250504
|
5 | Pass |
%%
nmax = 2000;
pmax = 1276936;
assert(isequal(peakOfPeaks(nmax),pmax))
a =
1276936
|
6 | Fail |
%%
nmax = 4500;
pmax = 6810136;
assert(isequal(peakOfPeaks(nmax),pmax))
Error: Assertion failed.
|
7 | Fail |
%%
nmax = 8120;
pmax = 8153620;
assert(isequal(peakOfPeaks(nmax),pmax))
Error: Assertion failed.
|
8 | Fail |
%%
nmax = 9998;
pmax = 27114424;
assert(isequal(peakOfPeaks(nmax),pmax))
Error: Assertion failed.
|
8411 Solvers
190 Solvers
Find the sum of the elements in the "second" diagonal
879 Solvers
Back to basics 16 - byte order
149 Solvers
465 Solvers