Result of test case (1,214748364) should be repeating decimal


  • 0
    C

    Since the denominator:
    214748364 / 4 = 53687091
    which can not be further divided by 2 or 5.

    The result should be a decimal with repeated part.

    Here's my result :

    0.00
    (
    000000465661289042462740251655654056577585848337359161441621040707904997124914069194026549138227660723878669455195477065427143370461252966751355553982241280310754777158628319049732085502639731402098131932683780538602845887105337854867197032523144157689601770377165713821223802198558308923834223016478952081795603341592860749337303449725
    )

    The expected result seems to only maintain the first 100 digits behind the dot.


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.