Problem 44747. Exponents in Factorials
Solution Stats
Problem Comments
-
2 Comments
li haitao
on 23 Oct 2018
Please add test cases:
assert(isequal(maxexp(1e9, 2), 999999987))
assert(isequal(maxexp(1e9, 3), 499999993))
James
on 23 Oct 2018
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!
Problem Recent Solvers23
Suggested Problems
-
429 Solvers
-
What is the distance from point P(x,y) to the line Ax + By + C = 0?
339 Solvers
-
10216 Solvers
-
Find last zero for each column
385 Solvers
-
Height of a right-angled triangle
1252 Solvers
More from this Author80
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!