Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
the good guy obviously doesn't read the description and uses some functions that are not described for use in the xd code
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.
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.
i do run same test, idk how did u came to idea like this but u re not reight aswell xd
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)
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.
Your code fails when there is more than one marker in the same line. Not a kata issue.
This comment is hidden because it contains spoiler information about the solution
Please read the description again, carefully.
bro why does
???
so:
1*11 is not 11 xddd?
we need to find lowest, fix ur kata, it doesnt works