According to Google translate, "driemaal is scheepsrecht" means "third time lucky" in Dutch.
I was wondering who would try this one, and how many iterations it would take. :-)
You can also try this solution style with another Cody problem.
http://www.mathworks.com/matlabcentral/cody/problems/648-cumulative-probability-of-finding-an-unlikely-combination
Select every other element of a vector
20366 Solvers
Arrange Vector in descending order
4086 Solvers
495 Solvers
376 Solvers
348 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!