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.
There seems to be a problem with the solution that you've pasted in. The second for loop has been mangled.
I am having same problem with my could not find the problem in code that says 'Test Failed: should be 300). Please review my code
My mind is blown. Nice work.
Ok... But the description says: 'Each time the sum exceeds 10'. 'Exceeds' is not equals to 'greater than' ? (Sorry for my english)
That date works perfectly. Keep in mind that when the sum is 10 or greater (i.e. two digits) that we are then to add the digits together (e.g. 10 becomes 1, 11 becomes 2, 12 becomes 3)
Oh, perfect solution. Now I feel myself dumb for my awkward code.
It's wrong when the sum is 10. Test this date: 07/20/1981
||9 covers the case where the sum of digits equals 9, because 9%9 == 0. We want to keep the pre-modulo value (9), not the post-modulo value (0).
OK, I looked at your solution.
Your problem is that you are requiring exactly three of a number when you add the number * 100. There might be more than three of the same number in the testcase... For example, these dice [4, 4, 4, 4, 4] should score 400, but you would say 0.
This comment is hidden because it contains spoiler information about the solution
If you post the solution here and mark it as a spoiler, then I should be able to look at it and see if there's a problem with the Kata.
This is tricky kata but test check has a problem in javascript. It says 'Test Failed: Should be 300' and i tried most of combination to get fail but i didn't get any problem on my solution. Can you check it pls?
Ahahaha :D
Nice! I would have never thought of this, but then again I never heard of the mathematical concept of "casting out nines".