← Goldman Sachs questions
CodingReported in a candidate post, Oct 2025

Convert a fraction string to its decimal form with repeating part

Filed under Goldman Sachs

Given a fraction as a string "numerator/denominator" (the numerator may be negative), return its decimal representation as a string. If the fractional part repeats, enclose the repeating digits in…

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.