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 is weird. I return the empty array as required. The test case works on my computer but fails here. Maybe some bug with codewars. Thanks anyway!
Returning an empty array is fine. You should try again: I upated the example test cases. If the tests pass, it should go through when submitting.
What is the function supposed to return when there is no match? I returned empty array, the tests pass but when I try to submit it says "should not have returned anything".