Back to Questions

Fraction to Recurring Decimal

108.7K viewsAsked at Salesforce
Medium

Question Explain

Given two integers representing the numerator and denominator of a fraction, return the fraction in string format. If the fractional part is repeating, enclose the repeating part in parentheses.

Start Trying This Question Simulation

Practice answering orally or with text to get instant AI feedback.

Practice with This Question
Fraction to Recurring Decimal - Interview Question