We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
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?
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Project Euler #59: XOR decryption
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?