https://leetcode.com/problems/fraction-to-recurring-decimal
If there is an infinitely repeated sequence of digit(s) in the result, then report the repeated portion inside parentheses.
Your result should be a string containing digits, possibly a decimal point, possibly a minus sign, and possibly '(' and ')' surrounding repeated digits.
For example:
numerator is 1, denominator is 4 --> 1/4
result would be "0.25" (no repeating digits found in result)
numerator is 1, denominator is 3 -- numerically that would be 0.333333...
So expected output is "0.(3)" (repeated digits found and placed in parentheses)
Could solve it with some clues(-ve) and code complete was not end to end, ran out of time.