Pedagogic solution is available in position 2 (commented, same as solution 1 but more explicit thus suboptimal).
Return the largest number that is adjacent to a zero
3752 Solvers
given 3 sides, find area of this triangle
680 Solvers
16 Solvers
Greed is good - Simple partition P[n].
24 Solvers
5473 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!