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 error is only reproducible in the older TypeScript translation, where the reference solution mistakenly calling the user solution in actual test line 47.
Closing, since reference solution is no longer affected by user solution in the current TypeScript translation.
Done.
you can find it in the trainer ("past solutions" panel) or in the "Solutions/my solutions" page.
I am not sure if you have confused yourself. (OTOH, I am sure you have confused me).
When I add and execute a Typescript test using the input you gave if gives expected result
[ 0, 2, 3, 4, 5, 4, 3, 2, 1, 0 ]
which at first glance looks ok.