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.
I have a Python solution if interested
I have a Python solution if interested
This comment is hidden because it contains spoiler information about the solution
Updated test cases
OK my solution works for 0.8088 and 65.666, but only if the recurring part is shown as '88' and '66' respectively. This I did know when testing against similar test cases and I made allowances for it by doubling up the recurring digit.
Your solution doesn't require it.
Ha that, second test has exposed a flaw in my solution. We get different answers for that case, when I run them side by side, so I'm going to assume yours is the better solution.
Thanks for feedback, as you'll have noticed this is my first attempt at creating a kata, curious as to how I can go about generating random tests, or do I literally generate a list of random recurring decimals, and run them through my algo to get correct results?
This comment is hidden because it contains spoiler information about the solution