How about changing the problem such that the centre value is not doubled?
314 Solvers
Reverse the elements of an array
704 Solvers
Who has power to do everything in this world?
323 Solvers
Check that number is whole number
1230 Solvers
425 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!