I think that in test case 1 the answer should be [1 5].
Maybe the problem statement should specifically exclude the first and last elements?
54250 Solvers
620 Solvers
Cell Counting: How Many Draws?
581 Solvers
110 Solvers
204 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!