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 right, I was thinking that is only the sum of the digits, didn't read the description carefully. Such a stupid move lol :D
They're both correct. Read the description again!
Yeah sorry, the first test is okay, the second is not.
assert.equal(solution.digitalRoot(16), 7);
assert.equal(solution.digitalRoot(456), 6 );
The sample test expects 6, I don't know where you see that 7.
Sum of 4+5+6 is not 7 !
Language: TypeScript