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.
Not a kata suggestion
solve the problem through regex, and not by splitting the string into an array
Your solution is just buggy. It does not handle trailing whitespace correctly. It is not a kata issue.
What is your suggestion tho?
Has anyone experienced a test failure with this error:
Wrong output for '123
': expected true to equal false
Know that instead of the 4th digit there is an \n