← Goldman Sachs questions

Recurring Sequence in Fraction

Filed under Goldman Sachs

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.

Related Goldman Sachs questions

Collected from public candidate posts and coding forums. Updated Nov 2026.