Given a numerator and a denominator, return the string representation of the fraction. If the fractional part repeats, enclose the repeating part in parentheses. For example, 1/6 becomes '0.1(6)'.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.