You are viewing a single comment's thread. Return to all comments →
My solution gives wrong answer to test case #3 but succeeds on others. Either I treat an invalid character as valid or vice versa. I only accept alphanumeric characters, spaces (not other whitespaces), brackets (no square brackets, not braces), and the punctuation characters specified in the description: (;:,.'?-!). What could be the problem?