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.
I got the correct answer in Java, but it still said "Wrong Answer." The problem says that you cannot add any lines of code, only debug, but there's no lines of code for Java? What's up with that? I'm trying to prepare for a Java coding interview, but I can't use Java to solve this question? The Python solution is so simple, you don't even use XOR. What's the point of this question in the first place? I guess the lesson learned here is "if you're having trouble solving the question, just switch coing languages?"
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
XOR Strings 2
You are viewing a single comment's thread. Return to all comments →
I got the correct answer in Java, but it still said "Wrong Answer." The problem says that you cannot add any lines of code, only debug, but there's no lines of code for Java? What's up with that? I'm trying to prepare for a Java coding interview, but I can't use Java to solve this question? The Python solution is so simple, you don't even use XOR. What's the point of this question in the first place? I guess the lesson learned here is "if you're having trouble solving the question, just switch coing languages?"