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
Cool! Since
range
is end-exclusive, you can do without theif
statement.I know this is old, but for anyone reading now,
sum
can also accept arange
(in fact, anyiterable
) object, which can save you some memoryThanks for the explanation.
I learn more.
Good one.
This comment is hidden because it contains spoiler information about the solution
Thanks for the quick fix.
This comment is hidden because it contains spoiler information about the solution
Fixed it.
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 the test cases don't cover it, but what if at least one of them was 0? ;-)
After spending too much time on one kata (longer than I care to admit) i figured pen and paper are sometimes good.
See the comment in my solution
This comment is hidden because it contains spoiler information about the solution