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.
OP solved it, closing
There are
Sample Tests
you can run your code with before clickingATTEMPT
. When you do, there are additional tests, and also random tests. So, your code needs to be correct for all of them. In the case of your error message, you returned an array of length52
, whereas that particular test required an empty array.Make sure that you're testing the same thing, the thing that failed - otherwise there's no point to it. It's very common around here to say "works locally but not here" and from what I can tell it's almost always caused by not measuring the same thing, making the comparison meaningless.
If you're unable to reproduce it locally, then you can still debug it here where you can repreduce it.