Ad
  • Custom User Avatar

    You do know that in Python tests, X should equal Y X is the value your function returns and Y is the expected value right? The non integer value was produced by your code, that's not the input value.

  • Default User Avatar

    I apologize, this is for python, I did not mutate the input, those lists were pulled from the failed test cases.

  • Custom User Avatar

    34060 is not.

  • Custom User Avatar

    One of the java tests is wrong.

    expected:<([18078,34060)(2262,34060)(25545,34060])> but was:<([6026,11353)(754,11353)(8515,11353])>

    All of the first set, above are divisible by 3.

  • Default User Avatar

    Which language? As far as I know all numbers are integers. Did you mutate the input?

  • Default User Avatar

    In the description it says "where all numbers are positive ints." for the input, then one of the test cases has "[[3.4285714285714284, 12.0], [4.0, 12.0], [1.0, 12.0]] should equal [[24, 84], [28, 84], [7, 84]]". Hmmm... those are not positive ints. Also, the denominators are all the same, so one would assume that "in which D is as small as possible" would be 12, not the 84 that is required if you want the rationals to have ints on the top and bottom. I guess what you meant was that the result must all be positive integers and d is as small as possible, which is an entirely different problem. Can you either be more clear with instructions, perhaps making them accurate, or at least give enough examples that what you meant can be inferred even if your description is inaccurate or unclear?