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.
You can check whether an item exist or no in an array, by checking its index, so if the index ( == -1) OR in other way (< 0), it means that this item doesn't exist, so the logic here is to push this item to the output array.
This comment is hidden because it contains spoiler information about the solution