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.
This comment is hidden because it contains spoiler information about the solution
I'm sorry, I did not understand. It is better now, and my first solution failed now, so I had to review it. Good kata btw.
This comment is hidden because it contains spoiler information about the solution
update: plase update description to explain that input arrays should not be modified.
what are we supposed to return when feeded with all empty arrays or null arguments? katas generally not descriptive about this and all we can do is guess.
Please, next time try to be more definitive what function should return when an empty argument is given. an empty array? an array containing null? or simply null?
truncate('Thisismytestingfunction.',10) case is totally wrong accoring to the single word case. I put a most ugliest hack to pass the test.