My cat gets out 1 day earlier on cases 3 and 4, by a claw. He reaches 25 on day 20.
I stand by my test case answers for 3 and 4 as the cat must be clear or above the hole to escape.
Hi RIchard, sorry if my conditions are a bit restrictive and you are quite clever to have realised it could be a day earlier for those test cases. Perhaps my problem is unnecessarily restrictive so if others feel the same I will revise it. :)
There are also the feelings of the cat to consider--whether it is fair to force him to spend an extra day undergoing an experiment of questionable benefit to science (and no obvious benefit to cats).
Find the sum of the elements in the "second" diagonal
999 Solvers
Return unique values without sorting
600 Solvers
222 Solvers
325 Solvers
Is this triangle right-angled?
2550 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!