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
They are required if you have multiple arguments or no arguments, in this case, it wasn't required but he put it anyway.
This comment is hidden because it contains spoiler information about the solution
But they can be? The second example has a negative, and so do some of the test cases.
Your teammates and your papers can not be negative.
I also did the same thing. My thinking was to have actual implementation first, then the exceptional case.
This comment is hidden because it contains spoiler information about the solution
Here's an explanation of the parts that may be tricky. Will not explain things such as
lambda
and generator expression.-~i
is the same as(i+1)
. Multiplying anint
namedn
and alist
namedxs
results in alist
with the contents ofxs
repeatedn
times.I see. Thank you so much!
Please use spoiler flag, otherwise your posts are visible in the homepage.
ok my friend