Ad
  • Custom User Avatar

    More than 9 months ago I said the same, that there is a problem, so you can't say: "Nobody had a complaint, nothing went wrong." I've already complaint.
    The answer was the same: "A lot of people solved this Kata, so there can't be any problem...". And now you agree that there is a problem in Swift version of Kata.

    The problem still occurs, and moreover: my last working solution (with one error) cannot be processed because of problems with classes and other stuff.
    So, what's next? Will the Swift translation be corrected or removed?

  • Custom User Avatar

    Same here. The test case is wrong, and I can't pass using Swift. I spent hours second guessing myself.. What the heck?!

  • Default User Avatar

    I tried but I do not get the Swift translation removed. It is just a very bad translation.

  • Custom User Avatar

    FrankK, I have passed sample tests through multiplying my radius by 2. I think the same situation with final tests. Swift language

  • Default User Avatar

    Hi pegasusroe!

    Sorry for my statement about you... Indeed, it is the Swift version and I must have been sleeping when I approved the Swift translation because it lacks the 'randomized test' of 25,000 at random coordinates.

    I am not a Swift programmer but I will try to do something about it or eventually remove it. In the meantime the only thing you can do is switch to another language.

  • Custom User Avatar

    Swift. So it is the Swift version of this kata that is very wrong, perhaps? :)

  • Default User Avatar

    I think something is VERY WRONG with you... :)

    The kata is solved by more than 200 people. Each time with 25000 random coordinate pairs. Nobody had a complaint, nothing went wrong.

    It must be a translation made by another user, that does not make this 'kata VERY WRONG'. No, all other languages will tell you 7. Can you please tell me which language you use?

  • Custom User Avatar

    There must be something VERY WRONG with this kata!

    With the coordinate (-101.572654585255 , -111.898313933494), the RIGHT answer should be 7, this is my proof:

  • Custom User Avatar

    There must be something VERY WRONG with this kata!

    With the coordinate (-101.572654585255 , -111.898313933494), the RIGHT answer should be 7, this is my proof: https://ggbm.at/cr6Rg3Nf

  • Default User Avatar

    Yes, you're correct; good catch. I should have a guard statement up front ensuring that the two strings are of equal length. That's a case that should be added to the tests.

  • Custom User Avatar

    what if s1 = "ABCA" and s2 = "BCA"?
    shiftedDiff("ABCA", "BCA") should return Optional(2).
    Does that make any sense?