Ad
  • Default User Avatar

    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...

  • Default User Avatar

    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?

  • Custom User Avatar

    Oh come on, format of the input could not be any simpler :) Parsing it is close to trivial for a kata of this rank.

  • Default User Avatar

    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++)