Ad
  • Default User Avatar

    Hey, better ask codewars team, though I've heard they abandoned this project, lol. Have a nice day!

  • Custom User Avatar

    Hey my solution is exactly the same yet it's not grouped with this one. Why?

  • Default User Avatar

    To all who experience issues while submitting your code. Make sure provided test examples work for you locally first. Each given test example should work. My problem was that it worked for me with some test example, I tried to submit the code, but it failed with some other test example. Then I checked each available test example locally and it finally worked for me when submitting. My hint looks obviously, but I still believe some users are too fast to submit the code (as I am).

  • Default User Avatar

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

  • Default User Avatar

    getting error:
    expected:<not[test]> but was:<not[aes]>

    where can I see input parameters values for this sample test?

  • Default User Avatar

    @jhoffner any idea what is the reason of 500 error when trying to submit Java code?

  • Custom User Avatar

    @GagarinR: Use print to check what the input is.
    And no, you're leaving yourself a space as I said many times, you're not deleting it with your code when you have two markers next to each other and you delete the second first.

  • Default User Avatar

    So... passed all tests in Java, still error 500 when trying to submit my code. Why?

  • Custom User Avatar

    @Chrono79: Could you please explain - '\n\xc2' should equal '\n', what is marker for this test case !

  • Custom User Avatar

    Its very easy solution and code that I solved, but I cant pass testcases!

  • Custom User Avatar

    Thanks, but I can't solve it, I deleted all spaces, tested it many times with my IDE
    In this case: 'apples, pears\ngrapes\nbananas[space]' should equal 'apples, pears\ngrapes\nbananas'
    I have exactly 'apples, pears\ngrapes\nbananas'
    I have no idea whats going on here...

  • Custom User Avatar

    @GagarinR: I've posted a link in my previous answer, test your code there and you will see where that space comes from.

  • Default User Avatar

    There may be a problem in Java or something. It works fine in Python

  • Default User Avatar

    If you don't add "\n" to the last line but still can't pass sample tests, then trim each line so that you get rid of extra spaces. Helped me to pass sample tests.

  • Default User Avatar

    Time: 5005ms Passed: 1 Failed: 0
    Test Results:
    Build Output
    Test Suite
    stripComments(StripCommentsTest)
    Completed in 9ms
    You have passed all of the tests! :)

  • Loading more items...