Ad
  • Custom User Avatar

    Hello everyone,

    I'm stuck with my PureScript implementation.
    It passes all manual test cases. When it comes to the generated tests though, the inputs comprise of over a hundred fractions.
    Even after simplifying, their common denominator would overflow the Int type giving an implredictable value.
    There are data types to handle big numbers but in the end I am constrained to return them back as Ints anyway, which defeats the point of such a convertion.

    Could somebody who accomplished this exercise in Purescript confirm that all the fractions are reductible to numbers within the Int range and my algorithm is just wrong,
    or perhaps that is a deliberate catch of this exercise and the solution requires a different take?