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.
Users can modify the input in random tests. This line
should be changed to
I recommend to print all tested arrays:
test("sample array [3,1,5,4]")
andtest("random array $list")
I also recommend to add
return [];
to the solution setup.