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.
Added
that's not what the description says.
Anyway, the ref solution was incorrect for empty arrays. Corrected.
Tests modified: I parted and lightened them.
Mocha (test framework used for TS and Node 10+) has its own timeout per test case. Looks like this kata has lots of test in one test case and that's making the test framework to timeout before the CW limit.
You can either split the tests into smaller test cases which can also improve feedback. Or you can disable the timeout for the test case by adding
this.timeout(0)
init
. See Mocha's documentation.TS translation done by @OpenByte, gone from CW in February. His reference solution passes in less than 5000s as well as some other solutions.
Days ago I was able to see not passed solutions but now I am not able to see and try them. Moreover I had to refresh the page many times before my reply works!
Report a bug? Has something changed? 52 TS solutions have passed.
Something could be wrong with the CW environment.