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.
Thanks!
That's a problem with your code, not a kata issue.
That may be so, but Codewars is a kind of sport. Performance katas are like a race.
Solution which takes a minute, 1 minutes, or an hour to run is not "true" if it is possible to solve the problem in a second. "returns correct answer" is not the only criteria of correctness of a solution.
Well, a solution must run fast enough to pass the test.
That rule is the same for all Katas.
You need more efficient code.
Your solution being too slow is hardly a kata issue.
( Very probably ) not a kata issue.
Try following the Troubleshooting Guide - you're giving not nearly enough information to go on.
Not a kata issue, print the input. Why are you sorting the result?
Your solution is not totally correct, for
digital_root(0)
it returns'0'
instead of0
.