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
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.
That's a twoliner though.
Python doesn't have arrays and the code above isn't creating a list either. It's creating a generator and the creation specifically takes almost no resource, since the values are generated lazily.
AFAIK the difference comes from the code above calling isdigit function a lot of times, whereas replace is only called 10 times. Keep in mind, that both of the functions are highly optimized and written in C, so that's why the the code with more function calls and more python is slower. That also for example causes some O(n^2) algorithms to run faster in python, than an O(n log n) alternative.
My friend, we write solutions not tests. The TESTS round answers, not solutions. What are you talking about?
How does this have anything to do with math?
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
Look at my solution to see what I mean
Do you mean that the group that I can't use the group found again?
Would you clarify for me what you mean by this?
@juanignaciomalerb4 Incorrect. If the array is empty, then 0 / 0 is done, which results in
NaN
(which is the expected result).Python example in the description has a syntax error, since python comments start with
#
, but in description//
is placed instead. When someone plans to change the python version of this kata, please replace that.Loading more items...