Ad
  • Default User Avatar

    This also has a problem if there are multiple spaces before the marker as it only removes one space.

  • Default User Avatar

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

  • Default User Avatar

    The answer to this question contradicts the description of the kata.
    In the kata description it states:

    For example, solve("tft","^&") = 2, as follows:

    "((t ^ f) & t)" = True
    "(t ^ (f & t))" = True
    

    However, in Example 1 above, three possibilities are given, applying this to the example from the description gives:

    t ^ (f & t) = True
    (t ^ f) & t = True
    t ^ f & t = True
    

    So, there are three expressions that evaluate to true, not 2 as given in the kata description. This kata needs further clarification, another example would help.