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.
Yes, there are problems with the ruby version (actually JS version too). Gonna raise a separate issue.
Also, don't use
split("")
, usechars
. Learn best practices ;-)Where so???
Works perfectly in python, for example. I guess JS or ruby provide the same kind of thing.
The description states that the input is a sequence. Meaning it is iterable. So having a simple number is out of the scope of the current task and falls in the domain of the "invalid inputs".