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".
Return the largest number that is adjacent to a zero
3776 Solvers
Remove the small words from a list of words.
677 Solvers
508 Solvers
550 Solvers
353 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!