Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
nmax = 10;
pmax = 52;
assert(isequal(peakOfPeaks(nmax),pmax))
pmax =
0
p =
10
|
2 | Pass |
%%
nmax = 30;
pmax = 9232;
assert(isequal(peakOfPeaks(nmax),pmax))
pmax =
0
p =
30
|
3 | Pass |
%%
nmax = 100;
pmax = 9232;
assert(isequal(peakOfPeaks(nmax),pmax))
pmax =
0
p =
100
|
4 | Pass |
%%
nmax = 1000;
pmax = 250504;
assert(isequal(peakOfPeaks(nmax),pmax))
pmax =
0
p =
1000
|
5 | Pass |
%%
nmax = 2000;
pmax = 1276936;
assert(isequal(peakOfPeaks(nmax),pmax))
pmax =
0
p =
2000
|
6 | Pass |
%%
nmax = 4500;
pmax = 6810136;
assert(isequal(peakOfPeaks(nmax),pmax))
pmax =
0
p =
4500
|
7 | Pass |
%%
nmax = 8120;
pmax = 8153620;
assert(isequal(peakOfPeaks(nmax),pmax))
pmax =
0
p =
8120
|
8 | Pass |
%%
nmax = 9998;
pmax = 27114424;
assert(isequal(peakOfPeaks(nmax),pmax))
pmax =
0
p =
9998
|
951 Solvers
2183 Solvers
Project Euler: Problem 4, Palindromic numbers
245 Solvers
253 Solvers
Piecewise linear interpolation
299 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!