-
1 Comment
Long Runjia Yu
on 1 Aug 2024
why in line 8 did you set the condition as 0 till n-1? it works and 0:n doesnt but why is that?
Suggested Problems
-
Return the largest number that is adjacent to a zero
5408 Solvers
-
10770 Solvers
-
Multiples of a Number in a Given Range
775 Solvers
-
375 Solvers
-
360 Solvers
More from this Author4
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!