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.
...That isn't how multi-input XOR works. it works like this:
If at least one input is true, return true,
EXCEPT if all inputs are true, then return false.
in your case, all the inputs are true, which means that XOR will return false.
Glad you got it! Congratz!
It would be much easier if the posted code used code formatting.
Your solution fails because it mutates the input array, which the tests reuse to run the reference solution and construct the failure message.
You should not mutate the input array, and test need to be fixed to not produce misleading output when you do.
I cannot reproduce this problem and test look rather OK. I think that the problem is somewhere in your solution but it's difficult to tell what is wrong without seeing your solution.
There are bugs in your solution that are causing you to fail the random tests. Inspect the output and try to figure out where you're going wrong.
The
issue
flag is for issues with the kata itself, not issues you're having solving it, so I'm resolving this one.