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.
Im curious as to why we do not need to specify return "false" or "true" in this example?
Also in Python, Ruby, PHP, maybe all other languages?
doesn't this change the original array?
Thanks for mentioning. I am new on this platform and didn't know the purpose of spoiler flag. Now I knnow. Thanks :)
for int arrays you need to return ints. but you are returning array of chars.
For ruby, I think you should have one test case where the duplicate values are not consecutive. for example:
unique_in_order([1, 2, 3, 2, 2, 4])
Result should be:
unique_in_order([1, 2, 3, 2, 4])
Use spoiler flag, please.
This comment is hidden because it contains spoiler information about the solution
You get this error when you pass a negative value to Math.sqrt. You can't pass negative to it.