Fraction to Recurring Decimal
Explore how to convert a fraction given by numerator and denominator into its decimal string representation. Understand the detection of recurring fractional parts and how to enclose them in parentheses, using hash maps to efficiently solve the problem within given constraints.
We'll cover the following...
We'll cover the following...
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