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.
I will try! Thanks!
Try not mutating the input array.
Explain to me please
Some Examples in Description:
([2,2,2,0,5,6,4,0,1,5,3,0,3,2,1,0]) should return
[2,2,2,0,1,2,3,0,1,3,5,0,4,5,6,0]
All Fixed tests passed
But in the same time in Random tests, for example:
([1, 1, 4, 5, 8, 0, 4, 5, 8, 9, 0]) should return
[41, 49, 58, 58, 100, 0]
All Random tests failed
Thats error(s) in my code or random tests are wrong?
The same situation