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
The use of the init parameter is not tested. I see at least one solution passed where the numeric value was inserted, while the behaviour of the
Array
constructor is to set the length of the array to that value.In the same line you may want to conform with the
Array
constructor behaviour when mutliple arguments are given, in which case they are inserted. And then it would be good to also require (and test!) that the Array is sorted at that very moment as well.What is the behavior of
pop
/shift
on an empty array?