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.
I got that too, but then worked the kata in xcode playgrounds, copied the entire function back over to the kata, and it worked as it should do.
At first I looked at this and was trying to work out a complicated algorithm. And then I saw the simple, beautiful logic, and had the answer in one line of code. Thanks for this kata