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.
5815 Solvers
Calculate the Levenshtein distance between two strings
475 Solvers
Remove the two elements next to NaN value
425 Solvers
Circular Primes (based on Project Euler, problem 35)
146 Solvers
The Answer to Life, the Universe, and Everything
390 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!