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.
This comment is hidden because it contains spoiler information about the solution
Too challenging for a 6 kyu, should be corrected
Whooh...That was tough one 🤯🤯🤯
In my first attempt i've used 2 filters — 1) return all elements that are the same as current 2) if returned array length === 1, then return current element (it appears only once). And then reduce.
I think, your solution with only one filter is 1) much more cleaner and 2) better perfomance. But I'm not sure about perfomace.