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.
.
arr
is not a copy ofnums
it's another reference to the same array.Still, can't see your code.
Please post your old code, it should work now.
Read this: https://docs.codewars.com/training/troubleshooting/#post-discourse I can't see your code otherwise.
You're probably mutating the input array. Changed the tests to calculate expected before calling your function.
You should provide relevant examples, I passed the tests in TS for now