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.
the biggest problem in your code is that you
split(' ')
on the space character, so you end up with a single chunk, since there are no spaces in the input strings.What is your question tho? If the question is "why my code does not work" then we do not know, and we cannot tell without seeing your code.