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.
Oh, my fault, thx for help
This comment is hidden because it contains spoiler information about the solution
No, now it's vice versa, only the first test passed and other failed, and length of input array equal 0
I found another solution which passes the tests. But mutating an array, even if created within the function, will fail one test
No, I create new array and work with it. Every time failed only one random test (and always first), other test passed
This comment is hidden because it contains spoiler information about the solution
The 2nd sample test is wrong
Language: Typescript
One random test is always wrong, it always expects 0 when it is clearly not
Language - Typescript