Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
You do know that in Python tests,
X should equal Y
X
is the value your function returns andY
is the expected value right? The non integer value was produced by your code, that's not the input value.I apologize, this is for python, I did not mutate the input, those lists were pulled from the failed test cases.
34060 is not.
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.
Which language? As far as I know all numbers are integers. Did you mutate the input?
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?