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.
The Swift version uses the default variable name "tape" for the user input string. This is potentially confusing. I would recommend that this be changed to "input" to match the implementation in other languages.
Good catch! Just using
size % 2 == 1
would work.