Ad
  • Custom User Avatar

    It does not work for you because you got newlines (\n) in your test string, that are not allowed by the rules of the kata.
    Take care to use """....""".replace('\n', '') if you want to use such multi-line strings as long strings.

  • Default User Avatar
  • Custom User Avatar

    It doesn't work when string is too long.

    this for instance ("""()()()()()()()()()()()()()()()()()()()()
    ()()()()()()()()()()()()()()()()()()()()()()()()()()()()
    ()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
    ()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
    ()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
    ()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
    ()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
    ()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
    """))