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
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Use spoiler flag next time.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Why is using
list
as a variable name voted best practice?This comment is hidden because it contains spoiler information about the solution
I think arseen tried to say the same thing :P
What exactly does the i+ do? I'm not quite getting it..
This comment is hidden because it contains spoiler information about the solution
Not really. It is to much code for what it is. It is also easier to make mistake this way. Reserving variable isn't memory efficient either.
This comment is hidden because it contains spoiler information about the solution
Again, that's NOT what you do. Instead, you provide a translation to an already approved kata, e.g. to http://www.codewars.com/kata/514a7bb557cdc630ab00001d
What happens if there's a string within the list? How should that be handled, or is the possibility not being taken into account here? Your description isn't totally clear on that. You're accounting for strings on their own but not within the list as is.
Loading more items...