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.
OP solved it, closing
Close enough, but you missed this part
If the **final result** is longer than 140 chars it must return false.
That's a problem with your code, not a kata issue, you only test match doesn't return
null
and then you work with the original string. While chaining methods seems nice, it makes more difficult to know where your code is wrong. Only chain when you're sure about what your code does.Because your code is too slow for big inputs: