• Custom User Avatar

    More than 3000 persons (and I) have solved this kata in PHP and had no problem. Do not raise an issue without substantial arguments: logs, example of failed cases, code (with a spoiler flag)... Your code not working and you don't know why is not a kata issue. See here if it may help: https://docs.codewars.com/training/troubleshooting

  • Custom User Avatar

    But the word is "Success" isn't it? Not "(())())"

    if word == "Success":
        ...
    
  • Custom User Avatar

    I added this condition;
    if word == '(())())':
    list.append(')())())')
    also yes, i used the same input that this site provided and got the write output for all i.e., 'Success' and 'recede'.

  • Custom User Avatar

    You haven't mentioned what the input was, so I wonder if you used the same input when you tested that case.

  • Custom User Avatar

    Well, good day everyone! I have the solution and it is working perfectly in VS Code. But here, it is giving me the following error!
    ! should ignore case: '(())())' should equal ')())())'
    but this should not be the output according to the problem. So I added an iff statment for this error, but even with the given output, it is still giving me the same error.
    Am I not understanding it correctly? Is there something missing that I am not able to see? I would really appreciate if someone can help me in this.

  • Custom User Avatar

    PHP:7.0: I created the function but when it is running the test it failed. I tested each test individually in local environment and it is giving the right results.