Problem 54. Maximum running product for a string of numbers
Solution Stats
Problem Comments
-
2 Comments
David Young
on 31 Jan 2012
It's a pity the test set does not include a case such that the largest running sum is not also the largest running product. Some solutions, including my solution of size 23, should fail because they take the sum, not the product.
Rik
on 14 Jan 2021
I would suggest adding '9909911111' as a test case. That would weed out all people who took a shortcut by using a moving sum, instead of a moving product.
Solution Comments
Show commentsProblem Recent Solvers1898
Suggested Problems
-
1445 Solvers
-
Count from 0 to N^M in base N.
234 Solvers
-
606 Solvers
-
379 Solvers
-
602 Solvers
More from this Author96
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!