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.
Hey, can we have few more tests and edge cases? (Like punctuation and special characters?)
Blew my mind
Ayyyy lmao, cheeky solution.
Cheeky!
Some test cases are broken, for example the following ones:
2 and 7 are present on the second array, but not given in the expected test.
7 is present on both first and second array, but not given in the expected test.
Same as above, for 6.
Seems like the
Test.assertEquals
treats arrays differently even if they are the same, so the default "Run tests" in there won't work properly.For the fellows coders: just replace the test with
.assertSimilar
or run the tests by clicking submit.