updated
Right, oups
"digital root" actually
This is called digital sum (i.e digit sum) in the simple case. so i would cal it a reapteded digital sum
Yup, came here to say that. all the invalid input tests are mostly just annoying, don't make much sense, and make everybody's code look worse.
This comment is hidden because it contains spoiler information about the solution
That kata allows use of strings and lists, this one doesn't (Woops, didn't notice this is from 3 years ago, it probably didn't require that back then)
Loading collection data...
updated
Right, oups
"digital root" actually
This is called digital sum (i.e digit sum) in the simple case. so i would cal it a reapteded digital sum
Yup, came here to say that. all the invalid input tests are mostly just annoying, don't make much sense, and make everybody's code look worse.
This comment is hidden because it contains spoiler information about the solution
That kata allows use of strings and lists, this one doesn't (Woops, didn't notice this is from 3 years ago, it probably didn't require that back then)