LeetCode
Fraction to Recurring Decimal
Click
here
for an explanation.