is the first test case result wrong? I think, it should be [60 30 30 60 60 120]
I think so too
I'm agree.
You are right.
I just changed the testcase, sorry!
Return the largest number that is adjacent to a zero
3770 Solvers
Maximum running product for a string of numbers
1131 Solvers
Simple equation: Annual salary
3798 Solvers
Calculate distance travelled when given radius and rotations
185 Solvers
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
300 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!