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.
APPROVED BY SOMEONE
Thanks for updating the kata, B4B. Since you modified my solution used in validating others' solutions in the tests, I thought at first that it was mutating the input. But it isn't and I don't think that that change is necessary. However, I agree with the other changes that protect the tests from others mutating the input.
done.
keep in mind that mutating the input is a VERY bad practice. As you just faced it.
the tests are "correct", the problem is that you're mutating the input array. I'll update the kata in a matter of minutes.
about the buffer problem, it's because the assertions are prinintg all the expected results to the console. That's enough to saturate it, in this kata.
You're probably printing too much to the console, remove all prints from your code. Also, if all random tests fail, I'd check if you're not mutating the input. Can't help you better because I haven't solved this kata yet.