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 originally had the
delete_if
as the last line of the loop, but there are random 0s in some of the test cases. I had to remove them first.Yeah, the kata specifically mentions that only positive integers will be supplied. So the code doesn't match the description.