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.
CoffeeScript translation
There should be fixed tests for that and currently, at least for javascript, the control function fails for a string with numbers in it (currently, not tested).
Updated JavaScript
There should be fixed tests with non-alphabetical strings to prevent solutions doing
{... for char_ in input_string if ...} or None
This comment is hidden because it contains spoiler information about the solution
Aliasing a built-in is a worthless practice.
Returning inconsistent datatypes is not a best practice. Also, it is undefined if a non-empty string with only non-alphabetic characters is to return
null
or{}
.The JavaScript description uses non-JS language.
Not satisfied. :/
This comment is hidden because it contains spoiler information about the solution
Is there a way to improve this to include an example of collision, else this becomes very easy.
I would consider adding an example in the instructions section.
Need some better example tests
Needs random test cases
This comment is hidden because it contains spoiler information about the solution
I think that it is bad practice to return nil rather than an empty hash for an empty string.
So I suggest removing that condtion.
If you're NOT going to do that, at least add this test to the standard tests: