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.
Mmmh, Safari refuses to show the images in the description of this kata due to a certificate issue. When I open it in Chrome it seems the formulas did not render very well. Deciphering the formula seems to be the hardest bit...
So, I read in the comments below that all '\n' should be preserved.
When I test my solution, the first one it fails on is:
stripcomments("stripcomments(str, ms) = nomorecomments(please())\n# Julia comments!\nstripcomments("I hope it works") # but I bet it won't\n", ["#"]) --> "stripcomments(str, ms) = nomorecomments(please())\nstripcomments("I hope it works")"
Expected: "stripcomments(str, ms) = nomorecomments(please())\nstripcomments("I hope it works")"
Occurred: "stripcomments(str, ms) = nomorecomments(please())\n\nstripcomments("I hope it works")"
So apparently I need to completely remove the line "# Julia comments!\n"?
But if I remove the empty lines completely, I fail on another test case. I see 13 people have completed this in Julia, so apparently I'm interpreting something incorrectly. Does anyone know what I'm doing wrong?
I want to like this kata. But I don't understand why I have to manipulate strings and deal with newline characters in the input. It distracts from the problem at hand. (C++)