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
Getting the row and column location from a matrix
246 Solvers
We love vectorized solutions. Problem 1 : remove the row average.
593 Solvers
Unique values without using UNIQUE function
180 Solvers
2908 Solvers
Number of odd and even elements within matrix
127 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!