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.
This is a truly beautiful answer. Well done.
This comment is hidden because it contains spoiler information about the solution
So simple and elegant, while I had to write a book of 20 lines to accomplish the Math.round feature.
Could you at least provide a couple of test parameters? What's the point of creating this and make the person solving the problem also provide a test to see if they correctly solved the problem. Doesn't make any sense.
Easy problem, but then have to spend extra time creating test parameters. Not good.
Probably when you split the input, you will run into problems with numbers with 2 digits or above, as they will all be split into single digits and mess up your final answer.