Please add test cases:
assert(isequal(maxexp(1e9, 2), 999999987))
assert(isequal(maxexp(1e9, 3), 499999993))
The harder test cases were going to be in version 2 of the problem. This was just to get the ball rolling. I see that you went ahead and submitted the problem with your added test cases, which is never a bad thing. Thanks, and I'm glad you liked the problem!
Project Euler: Problem 4, Palindromic numbers
259 Solvers
Generate N equally spaced intervals between -L and L
573 Solvers
Is this triangle right-angled?
3004 Solvers
2221 Solvers
188 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!