Ad
  • Default User Avatar

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

  • Default User Avatar

    Yes, I couldn't get the indentation to work within the comment.

    I agree that the first example would normally return False but returns True. This is the case with is_merge("codewars", "code", "code") that my code was failing.

    As for is_merge("ab", "a", "b"), my code does not fail there. It returns True.

    Also, with the code above, I successfully passed all tests but shouldn't have been able to do so; hence, the reply. I am quite a novice as you can see, so apologies if I have not made myself quite clear. Hopefully, you see what I mean, are able to understand how I cheated the tests and can improve it (if needed).

  • Custom User Avatar

    Thanks for your code. The indentation is gone, but if I read it correctly, there are some basic cases that wouldn't work.

    For example, is_merge("ab", "a", "a") should obviously return False, but your code would return True. Also, is_merge("ab", "a", "b") should return True, but your code would return False.

    Please correct me, if I misindented your code. :-)

  • Default User Avatar

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

  • Default User Avatar

    Please fix part of the kata's description:

    Each letter of a word scores points according to it's position in the alphabet: a = 1, b = 2, c = 3 etc.

    "it's" -> "its"