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.
man, so smart, I hate it
Damn genius!
This comment is hidden because it contains spoiler information about the solution
A smart one
enumerate creates a pair index, value for each element in the list/array passed in. That's how he's incrementing p, by adding the index to it each time rather than actually incrementing it by 1 in each iteration. I honestly wished I would have thought of this.
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
This comment is hidden because it contains spoiler information about the solution
I assume it's becuz there's no such test case for this kata.
This comment is hidden because it contains spoiler information about the solution
Brilliant
Love it wish it was mine
I think it is best practice because it produced a concise and understandable solution within the constraints outlined by the problem. The problem never required specific exceptions to be caught.
simple, I like it.
Loading more items...