This is (more or less) cribbed from the USC contest winner's solution.
Very fast and very compact solution. Nice usage of complex to calculate distance between points and recursion.
Determine whether a vector is monotonically increasing
12223 Solvers
1316 Solvers
4210 Solvers
Generate a string like abbcccddddeeeee
238 Solvers
Sum of odd numbers in a matrix
321 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!