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.
Hi; there are a few things not working with your solution, but the main one is that you are
print
rather thanreturn
int your solution.Furthermore, currently you are printing
for j in ls
several different times, whereas you will need to find a way toreturn
only once - maybe by building up an output string then returning once it is finished. Hope that helps you get started on debugging!Scala description needs update: the description claims you must return false for invalid input, but the tests expect an empty string.
Returning empty string is more sensible behaviour, please update the description to reflect this.