Retired
Convert recurring decimal to fraction (retired)
Description:
Given a decimal 'q' and a string 's' that represents the recurring part of 'q', convert 'q' to a fraction and simplify.
Returning the numerator and denominator as integers
eg. convert(0.11, '1') should return (1, 9)
Thanks to ZED.CWT for invaluable input and a better solution
Mathematics
Fundamentals
Similar Kata:
Stats:
Created | Mar 9, 2019 |
Warriors Trained | 126 |
Total Skips | 5 |
Total Code Submissions | 178 |
Total Times Completed | 20 |
Python Completions | 20 |
Total Stars | 6 |
% of votes with a positive feedback rating | 63% of 12 |
Total "Very Satisfied" Votes | 6 |
Total "Somewhat Satisfied" Votes | 3 |
Total "Not Satisfied" Votes | 3 |
Total Rank Assessments | 11 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 5 kyu |
Lowest Assessed Rank | 8 kyu |