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.
This comment is hidden because it contains spoiler information about the solution
Prolog translation
Approved
Your solution being too slow is not a kata issue.
There is this test case in example tests which your solution takes over 10 seconds to solve:
It has to be solved much, much faster.
This comment is hidden because it contains spoiler information about the solution
How to show the sollution ?
Not a kata suggestion. See https://docs.codewars.com/training/troubleshooting#post-discourse.
We don't know, we can't see your solution.
This comment is hidden because it contains spoiler information about the solution
So what do I have wrong in my sollution ?
It passes test but failed attemp.
39 --> 39 = 27, 27 = 14, 1*4 = 4
we count how many time we had to multiple in order to get to a single digit and this intence, we multiplied 3 times, we did (39) and (27) and (1*4) thats 3 times, hence the answer is 3.
this was challenging, I learned about how to use a while loop though!
No, you read it wrong:
Not a kata issue.
In the explanation of the code it says persistence(39)->39->27->27->14->1*4-> Answer 4
In the test case the answer is 3 to the exact same question. This kata needs correction to test case.
Shell Translation
Loading more items...