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.
Of course there is a solution under 10 line, while mine is at least 20 :D Good job guys!
This comment is hidden because it contains spoiler information about the solution
That was an original kata description, I really liked it!
But you forgot that we need to add the dressedInBlackLeather = true and the changesHair = true proeprties :)
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I know it is not helpful, but I really liked this, even tough it is dead simple. The description was really fun!
Its fine if you want to make the kata harder, but
return list[list.length-1];
would be more appropriate hereLastly a personal opinion. There is no way in hell you would implement this function this way for a real world app.
That's why I find this Kata to be of little value.