Project Euler #59: XOR decryption

  • + 0 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?