Ad
  • Default User Avatar

    Now, the tests should work better.

  • Custom User Avatar

    I am sorry, no hablo Clojure :(

  • Default User Avatar

    I actually see... :-(
    Do you see the problem in the tests?

  • Custom User Avatar
  • Default User Avatar

    As 30 persons solved the kata, I do not think the tests are wrong.

  • Default User Avatar

    @marbiru Original list with only two numbers can happen, but only when the difference and therefore the missing number are also integers,because long type is an integer type,which can't store floating point numbers.
    For example, it can happen: [1,5] => d=2 => missing= 3
    but it shouldn't happen in this kata: [1,4] => d=1.5 => missing= 2.5

  • Default User Avatar

    Note that this kata HAS an issue, though (even if it might be totally unrelated to 1vaR's problem, yes): see my message above. This kata should be in the top ten of the "list of old katas to retire", IMO. ;)

  • Custom User Avatar

    No, but unless you can prove that the kata is doing something incorrectly (and by prove it's not "I think it's wrong because my code is not passing", you gotta need evidence and deduction and stuff) it's almost 99% your own code's problem, which it's improper, or even outright misleading to post as an issue. Not to mention that CW has lots of noobs around, and they'd blindly upvote any "issues" regardless of whether they're actually genuine.

    And that's precisely describes what you're doing at the post above, so our first instinct is to tell you that it's not an issue, it's a question. Not inflating your own enquiries is the first step of self-learning ;-)

    (Also, it goes without saying, but asking the same thing at other threads is a bad idea too, it annoys others, creates more noise and won't achieve its intended effect most of the time.)

  • Default User Avatar

    Thanks for replying.
    Since i haven't solved this kata i can't determine whether the problem i have is an a issue.
    You remind me well,thanks again.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar
  • Custom User Avatar

    Technically yes you can solve it with 3 numbers, when adding the fourth number needed.
    [1,2,4]==> 1,2=1 2,4=2
    only one solution by adding 3 ==> [1,2,3,4].
    Do you have example where it wont work with 3 numbers ?

  • Default User Avatar

    Hi sir,can you take a look at my new issue about this kata?
    It wouldn't take you much time,thanks!

  • Custom User Avatar

    Your katas are better than mines. :) I'll have some spare time since next week. I hope to be able to publish new ones, including the performance version for this one. Thanks for your encouragement.

  • Custom User Avatar

    I think the description basically says that already, just not super-explicitly, as I wanted people to think a bit more :)

  • Loading more items...