Not the cleanest code (I would have used dtmc if the corresponding toolbox was available, and I should definitively improve the code quality itself and vectorize it a little bit)
The problem was fun, thanks :-)
Oleksandr Denysenko, you get no credit for hacking the problem. Only legitimate solutions gain credit.
Persistence pays off! :-)
Remove all the words that end with "ain"
1292 Solvers
25 Solvers
401 Solvers
Get the length of a given vector
3562 Solvers
Check if number exists in vector
4468 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!