Given numerator and denominator, return the fraction as a string. If the decimal part is repeating, enclose the repeating part in parentheses.
Input: numerator=1, denominator=2 Output: '0.5' Input: numerator=1, denominator=3 Output: '0.(3)' Input: numerator=4, denominator=333 Output: '0.(012)'
Unlock hints progressively β start gentle, go deeper only if needed.
Level 1: Gentle Nudge
A subtle direction
Level 2: Approach
The algorithm to use
Level 3: Detailed
Step-by-step guidance
to save progress and use AI features