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.
- XOR Strings 2
- Discussions
XOR Strings 2
XOR Strings 2
Sort by
recency
|
233 Discussions
|
Please Login in order to post a comment
String concatenation works, you only change 3 things at once
Not working in Python either, the provided output equals the expected one but the checking system is not working.
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?"
Here is the solution for XOR Strings 2 in Java7 because for Java 8 they did not give any code to modify but we have to modiy only 3 lines according to question.
import java.io.; import java.util.; import java.text.; import java.math.; import java.util.regex.*;
public class Solution {
}
Don't do it in Javascript, it's broken. The python solution is so simple you'll laugh.