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.
Remove any row in which a NaN appears
6832 Solvers
1764 Solvers
927 Solvers
62 Solvers
Longest run of consecutive numbers
1684 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!