The problem says the input is a positive integer but the first test inputs 0. In my code that caused r = 0/0 error. Please change the wording to "input is non-negative".
Maximum running product for a string of numbers
1131 Solvers
Are all the three given point in the same line?
274 Solvers
3204 Solvers
244 Solvers
296 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!