Problem 44503. Anyone for tennis? Your chances of winning a tie-break game
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 :-)
I'm glad you enjoyed the problem. You're welcome :-)
I enjoyed looking at your solution too: it had two things I appreciate, namely a creative solution, and ample explanatory comments in the code :-)
Kudos for a consistent and elegant approach. Stole the handling of scores > 7 for my second submission.
Oleksandr Denysenko, you get no credit for hacking the problem. Only legitimate solutions gain credit.
Problem Recent Solvers4
More from this Author32
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!