Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
if x = '.......c.m', x.length is more than 5 and as per your logic answer is 'Escaped!' while in truth it should be 'Caught!' because the cat can jump upto 3 characters
Removed test cases such as
1 2 3
.This exposes a weakness in the tests. The logic is actually incorrect as other commenters have noted.
I did the exact same thing, lol
There is just one problem with this Kata - the test cases with expressions like "1 2 3" are incorrect. In reverse polish notation, there is always an operation specified at the very end of the string.