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.
Please provide an example of such cases in another comment, but this is impossible with the number of solutions in JS. Also, seems like you've passed the kata, closing!!!
Java translation
Nice!
I dont know if a failed but the random test for me is giving false as a different array but i copy and paste the random test in my code and try to see if they are different and they're completely the same array, so if you can check, maybe could be that im doing something wrong
I've added one fixed test to invalidate those, but the random tests could probably be improved to include such cases sometimes.
At least in Python: missing edge case tests like
[1, '1'], ['1', 1]
. There are some incorrect published solutions that would fail.It's not specified if input only contains integers and strings or it can contain objects of other types. Some solutions depend on it.
I like it! :thumb_up:
[10,10] is the correct solution in that case
fun kata! oldie but goodie :D
No need, they're both identical anyway.
Anyway @Johan, I don't see how input modification is an issue when the expected output is already pre-determined.
Added random tests and updated to Node v12
C# translation ready! Please review and approve.
for input like [8,10,10,1] you'll get [10,10] instead of [8,10]
Loading more items...