Ad
  • Custom User Avatar

    wondering the same thing here. for decompose(0.989) my code gives

    ['1/2', '1/3', '1/7', '1/79', '1/6610', '1/99690819', '1/12146761380509000', '1/316165311503624795713508898504704']

    but the test case assumes that the correct one is:

    ['1/2', '1/3', '1/7', '1/79', '1/6610', '1/99690819', '1/12146761380509000']

    wondering if i am doing somewhing wrong or I should stop if further expansion does not contribute much.