Fraction to Recurring Decimal at Goldman Sachs

Medium30.5% acceptance

This problem has 75.0% frequency at Goldman Sachs.

Problem Description

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 If multiple answers are possible, return **any of them**. It is **guaranteed** that the length of...

Read full problem and hints

Topics

Also asked at 9 companies


More Goldman Sachs Questions

View all Goldman Sachs questions