Ad
  • Custom User Avatar

    the good guy obviously doesn't read the description and uses some functions that are not described for use in the xd code

  • Custom User Avatar

    I've properly checked your code now that I'm on a pc, check my updated answer.
    This is the input that makes your code fail: strip_comments('apples, pears # and bananas\ngrapes\nbananas !#apples', ['#', '!'])

    Use this to see what your code is doing.

  • Custom User Avatar

    I ran your code against the codewars test and observed the input and it wasn't what you showed, and your code did absolutely fail that test, which I confirmed by hand and not only through the cw test message.

  • Custom User Avatar

    i do run same test, idk how did u came to idea like this but u re not reight aswell xd

  • Custom User Avatar

    You're also not running the same test case as the one that codewars is running when it gives you a fail. (And if you had to guess the input instead of finding out what it was, then you're already aware of this to some degree)

  • Custom User Avatar

    so then i would see 'apples, pears\ngrapes\nbananas\n' should equal 'apples, pears\ngrapes\nbananas' instead of what i see, u cant be right, this is why logs made for.

  • Custom User Avatar

    Your code fails when there is more than one marker in the same line. Not a kata issue.

  • Custom User Avatar

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

  • Custom User Avatar

    Please read the description again, carefully.

  • Custom User Avatar

    bro why does

    Answer for runes = '?*11=??' : 1 should equal 2
    

    ???
    so:
    1*11 is not 11 xddd?
    we need to find lowest, fix ur kata, it doesnt works