Hash Table
166. Fraction to Recurring Decimal
Turn a fraction into its decimal string, wrapping any repeating block in parentheses — 1/3 → "0.(3)". The heart of it is a fact you learned doing long division by hand and probably never thought…
Loading…