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.
interesting approach
👍
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
suggestion: u could do in one filter and combined both the condition using &&
Can you please explain why you divide by 1e15
What will happen if the length of name is 5 or more words?
Cool, thanks!
Hey, if you instead replace, let splitStr = s.split("!").join(''), you can avoid a loop