Your solution is fastest so far.
Good job, Athi.
@Athi, your solution contains many "magic" constant variables that I don't know how you got.
William's solution is much easier to understood, although it is slower than yours.
Thanks li haitao.
Return the largest number that is adjacent to a zero
3770 Solvers
230 Solvers
538 Solvers
186 Solvers
475 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!