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.
Pardon my lack of knowledge, but what do you mean by 'mutating input'? 'Cause I'm facing the same issue as you.
ok but, again, don't consider your approach as a solution (that is, if you kept it). If you keep that habit of mutating the input, you'll trigger hatred from your colleagues to be because you'll create bugs hard to track! ;)
done. You shouldn't have problems anymore. But Don't mutate the inputs!
I can confirm that the expected results should be the following:
Tho, what's weird is that, when I run my solution (which expects those output), I never get any fail in the random tests. So... Are you absolutely sure you read the assertion messages correctly?
Investigating further: the reference solution is expecting the same results. You messed something in your logs. Closing.
(note: ooooh... Lemme guess: you mutate the input array, right? Do NEVER mutate the input. When you do so, nothing can be guaranteed anymore and you're just facing it right now. I'll update the test suite)