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.
Issue: imho, instructions should explicitly say that all the numbers in the list provided are positive (if the list provided was including negative numbers, most of the solutions would need to be different).
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.
Approved
Lua translation!
LC translation
Haskell translation
Rust translate
though i came to the conclusion that it was my flawed interpretation at the end, the description indeed is clearer now, thanks!
I'll add that other example if you think that'll make it clearer.
so what? lets say you have for instance [3, 4, 3, 3] instead
so last two 3's are mutual duplicates of each other, therefore first 3 has no duplicate.
cant it be interpreted like that, or it's just me? :)
maybe i should look into "duplicate" definition, idk...
You can see from there that no 3 is counted.
maybe the description could be more clear - you could say "ignore numbers that appear more than once in array"
i thought sum of array [ 1, 10, 3, 10, 10 ] should ignore only last two 10's, and not the first one, cuz it technically might not be a duplicate
anyways, had fun! (mostly cuz of me misunderstanding the task)
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.
Loading more items...