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.
What, no FeelingsPartyFactory?
What about numbers in other representations, e.g. hex values? The description doesn't mention bases, I'd expect it to work for all bases.
But
digital_root(0xff)
would be by definition (the recursive sum of all the digits)0xf + 0xf = 0x1e -> 0xf
. Treating0xff
as a base-10 number (255) leads to a different result (3).For a complete solution, I'd say one should make the function also require a base, or mention that base 10 is assumed in the description.