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.
I think it might have something to do with the fact that the same array is used for both "sides" of the test.
Here's the breakdown (possibly):
Test.assertSimilar(sortReindeer(testArray), solution(testArray));
So first, do the user's sort on the array, which returns a reference to the array. Then sort using the test's solution, which also returns a reference to the same array. So the code becomes equivalent to:
So I guess anything that returns the original array would pass this test? Maybe?
how could this work?