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!
Back to basics 20 - singleton dimensions
Multiply a column by a row
Remove entire row and column in the matrix containing the input values
Calculate the Number of Sign Changes in a Row Vector (No Element Is Zero)
Pi Digit Probability
Pseudo Square Root (Inspired by Project Euler 266)
Make one vector from two others
How many days?!?
Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock.
If you prick us, do we not bleed?
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office