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.
In Ruby there are no tests written... You have to write your own, which is considerably more difficult than completing the kata, because who knows what the test cases are? The scenario is so poorly specified, the only way to write the tests, was by submitting the answer, printing the inputs to the console, then using that to write the tests. Is it too much to ask to write proper tests?
This comment is hidden because it contains spoiler information about the solution
This is also an important lesson, do not underestimate it.
Also not many languages have a built-in function which realises the task here. You can try it in Pyton or JS,then you will have to Google for something else than built-in.
This comment is hidden because it contains spoiler information about the solution