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.
youre close to your given runtime but using arr1.sort() and arr2.sort() at the start ruins it - try arr1.reverse() and arr2.reverse() instead
This entirely defeats the point of the problem, that being to take advantage of the fact that the arrays are already sorted.
It's easy with regex. Plus, I don't think this is Kyu 8. The author thought of what?
17 if else statements? lol
He/She should've put it as a dict...
This comment is hidden because it contains spoiler information about the solution
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.
Description is now language-agnostic, so closing
good
for me its not readable at all ! xD
i know of one other which was the exact same length. what are the other ways tho?
EDIT: I found a way which is 1 char shorter
IDK if it was a joke, but there are 3 shorter ways to import.
my exact solution but i was golfing
This is really smart, had no idea or could be used this way.
Sure! Thanks a lot!
It works without return because the sample test (scroll a bit to see it in the coding page) tries to call factorial(). Talking about what he imported from math, factorial, it is imported as a function after all. Hope you get it.
Loading more items...