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.
Not only are you trying to be pedantic, but you also don't even seem to understand the rule you're trying to be pedantic about.
That method does accept two parameters, since two is in the range of 0..N. The opposite of accept is reject, and if that function rejected
two parameters, the tests would not pass.
Also, why are you criticizing people for improving the function by not limiting the amount of names a person can have? At least hundreds of millions of people in the world have more than two names.
This works fantastic, but I'm struggling to understand HOW it works. Could anyone explain?
This is pedantic but the description does say:
Although the test cases doesn't test for the amount of parameters, this solution would technically be incorrect as it accepts 0 to N parameters.
This comment is hidden because it contains spoiler information about the solution
Hey thanks for letting me know, this whole time I thought the solutions you can see matched your version. I know in 3 this would still work if put all this in another parenthesis and "list" in front, which is still cool
This comment is hidden because it contains spoiler information about the solution
Is this python 3? I didn't know you could do this 😮
This comment is hidden because it contains spoiler information about the solution
This does not return the right answer for negative n, e.g., n = -8.
It has less complexity (only sorts n items instead of len(xs)), so for large xs's and small n's its worst case should be better. Performance on real-world data is to be tested.
This comment is hidden because it contains spoiler information about the solution
Wow, I didn't know I could use
cmp
like that. Neat!This comment is hidden because it contains spoiler information about the solution
Third order polynomials? What black magic is this? I'd love an explanation...
Anyway, this is my favorite solution now.
Image added. There is a link with more informations.
Thank you for the feedback.
Loading more items...