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.
Note to self:
Investigate later for pattern.
Nice kata but unfortunately some Elixir test cases are broken, for example:
Proper solution is 4 in this case, which also works on my local machine:
I agree, there is no good balance in performance constraints between languages.
47848+-?39008=-5911?0
47,848+-(100,000x + 39,008) = -(591,100 + 10x)
47,848 - 100,000x - 39,008 = -591,100 - 10x
-99,990x = -599,940
x = 6
-1 is the output for when there is no valid solution.
This comment is hidden because it contains spoiler information about the solution
In Elixir, some test cases seem broken. All sample tests pass, but some later test in the full suite always fails, expecting a result of 0 when there is no correct result (-1).
Example:
In this case, not only does 0 not solve the equation, but it also goes against the rule that no number will start with a zero.
I don't like how the tests push the input size too high for many implementations. Some languages are more efficient with this and others will not pass even with decent algorithms.
This comment is hidden because it contains spoiler information about the solution
Why is it not an issue ? The result is not the good one since D is not as small as possible.
Not an issue with the kata.
Why [[69, 130], [87, 1310], [3, 4]] should return [[18078, 34060], [2262, 34060], [25545, 34060]] and not [[3588, 6812], [435, 6812], [5109, 6812]] since Fraction(69,130)+Fraction(87,1310)+Fraction(3,4) --> Fraction(9177, 6812)?
Can someone give me a hint on this one ?
Just like the description says, inconsistent tests between languages. It's a whole different problem from one language to the next. My language happens to be one of the PITA ones, so I'll pass on this one. Hope this question can get an update for consistency and a better description as well!