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.
Hey, better ask codewars team, though I've heard they abandoned this project, lol. Have a nice day!
Hey my solution is exactly the same yet it's not grouped with this one. Why?
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).
This comment is hidden because it contains spoiler information about the solution
getting error:
expected:<not[test]> but was:<not[aes]>
where can I see input parameters values for this sample test?
@jhoffner any idea what is the reason of 500 error when trying to submit Java code?
@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.
So... passed all tests in Java, still error 500 when trying to submit my code. Why?
@Chrono79: Could you please explain - '\n\xc2' should equal '\n', what is marker for this test case !
Its very easy solution and code that I solved, but I cant pass testcases!
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...
@GagarinR: I've posted a link in my previous answer, test your code there and you will see where that space comes from.
There may be a problem in Java or something. It works fine in Python
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.
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...