Ad
  • Custom User Avatar

    Not a suggestion.

  • Custom User Avatar

    Great! (That you got it, not that the description was confusing.) :-)

    Then I marked the issue as resolved.

  • Custom User Avatar

    Note that the description tells you to figure it out from the test cases. The example in the description (which your code solves) is not the whole truth.

    You can't assume that the characters are taken alternatingly from part 1 and 2. Here are two other examples that should return true:

    The example you found among the tests:
         s: c o d e w a r s = codewars
    part 1: c o d e         = code
    part 2:         w a r s = wars
    
    and
         s: c o d e w a r s = codewars
    part 1:     d e     r s = ders
    part 2: c o     w a     = cowa
    

    Good luck! :-)

  • Custom User Avatar

    It worked now.

  • Custom User Avatar

    There was a Java translation. It is gone by accident :-( I tried to recreate it but page runs in timeout while saving. I think there is a bug in codewars page at the moment. I will re-try later. Sorry

  • Default User Avatar

    sorry that I've been gone so long...

  • Custom User Avatar

    It's been approved.

  • Custom User Avatar

    I have translated it. But the author of the Kata hasn't been active in the past month.
    So, can't say if it will be approved soon.

  • Default User Avatar

    Thanks for the feedback!

  • Default User Avatar

    Part of the value of not seeing all the unit tests is forcing your mind to consider other corner cases or vulnerabilities in your code.

    If you really can't figure it out and are in a time crunch, add for loops to show you the function inputs, and then use that information to update your test.

  • Default User Avatar

    Test 8 is not different from others. It's not usual in Codewars to show the tests:-(

    "If a or b are empty the result is evident by itself"

    It's up to you! Think about it.

  • Custom User Avatar

    I've written a Java translation. Just have to wait for it to be approved!