...

/

Fraction to Recurring Decimal

Fraction to Recurring Decimal

Try to solve the Fraction to Recurring Decimal problem.

Statement

Given the two integer values of a fraction, numerator and denominator, implement a function that returns the fraction in string format. If the fractional part repeats, enclose the repeating part in parentheses.

Constraints:

  • denominator !=0!= 0
...