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.
Omg!! Thank you so much for this! I've been trying to make this equasion by myself from the formula above and couldn't. Had to google long forgotten Math course. :)
This comment is hidden because it contains spoiler information about the solution
Can I know how do you get this equation how do you make transformation?
Thanks.
@LesRamer: Could you please review my JavaScript solution? I might have ended up with a solution of complexity lengthOfNumer^3 that only takes 5 ms for the 900000001 problem (~700 iterations). I can't believe that's true, though... :-) Thanks!
https://www.codewars.com/kata/reviews/5660c9c5bac7553ac60000a9/groups/5e2f0eb091a2ce00011b0cb3
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
The performance may be slow.
It may be the fastest solution, though the code is a little bit much.
You can reference my solution, which may be the fastest way. Hope it will help you.
You can view my solution. I think my solutin may be one of the fastest anwsers, though the code is a little bit much.