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.
This comment is hidden because it contains spoiler information about the solution
In the kata description, it is explicitly stated that the passed in array will only contain 0s 1s and 2s but in one of the test cases (Ruby), the array contains 4s as well. This edge case should be added to the kata description as well as what the method should do when it encounters invalid values such as this.
This seems more like an eight (8) kyu kata rather than the five (5) it currently is.
In the last test case, we have to ensure that an array containing items in the format: [1, "[", "]"] is the same structure as an array with items in the format ["[", "]", 1]. Why should it be this way seeing as the data type for each item isn't really the same as the other array?