Ad
  • Default User Avatar
  • Default User Avatar

    Yeah! The Kata's Valid. I wrote some unnecessary code which resulted in undesired outputs

  • Default User Avatar

    not an issue with the kata
    (and there are no quotes in your input string)

  • Default User Avatar

    I think there is an issue !
    My code Failed for the following test case:

    solution('pears lemons\n? apples oranges cherries\napples oranges lemons oranges pears\npears cherries apples cherries ?',
    ["'", ',', '?', '=', '#', '.'])

    My solution :-
    '\n\napples oranges lemons oranges pears\npears cherries apples cherries'

    Expected solution :-
    'pears lemons\n\napples oranges lemons oranges pears\npears cherries apples cherries'

    Isn't "'"(single quote) a comment marker ? I'm Confused