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.
You are one of the few who really checks whether the acceptance criteria are met, namely a maximum of 10 numbers and that each number is in the range from 0 to 9. Your code, like mine probably, may not look that cool single-line, but in practice it would survive any unit test. The 2 discounter tests of codewars are not to be taken seriously. The favored solution is wrong in my opinion, because there is no check of the input. Such a thing is in practice deadly. Therefore I find your solution very good.
This comment is hidden because it contains spoiler information about the solution