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.
Read this: https://docs.codewars.com/training/troubleshooting#print-input and this: https://docs.codewars.com/training/troubleshooting#post-discourse
Your code isn't right and it fails one of the sample tests, discover which one and you'll see why.
This comment is hidden because it contains spoiler information about the solution
Yeah, that was me just being stipid. Thank you that helped alot.
How would your code know if the unique is the first item or the second one?
This comment is hidden because it contains spoiler information about the solution
The solution is beautiful, but creating a dictionary probably takes a long time.
The problem can be solved by looking through all the elements of arr.
Nice solution. Forgot about the spread operator.
This is genius!
This comment is hidden because it contains spoiler information about the solution
I think its somthing related to destructuring of Array
This comment is hidden because it contains spoiler information about the solution
Why the 3 dots? if I remove the 3 dots give me an error NaN. Why?
It means you didn't return anything, when you should've returned 42.
I only took a quick look, but treating an array as string looks like a bad idea IMO. Stick to something closer to arrays/lists.
This comment is hidden because it contains spoiler information about the solution
how did this code pass? i did the same and got NaN error, i had to filter out numbers.
Loading more items...