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
|
200 Discussions
|
Please Login in order to post a comment
I couldn't make it work for JavaScript. Had to change the language to Java 7 to pass
Code Blocks `python def strings_xor(s, t): res = "" for i in range(len(s)): if s[i] == t[i]: res += '0' else: res += '1'
s = input() t = input() print(strings_xor(s, t))
looks like this problem isn't for every programming language.
It says "You can modify at most three lines in the given code and you cannot add or remove lines to the code."
the code should be written and you only modify it, i did that in python.
but in java for example you need to write the full code and it wont get accepted whatsoever.
This question is ridiculous - how do we flag it to the Hackerrank team?
WOW Dude! What a question I tried to run the same code by debuging exaxctly 3 lines in C++ 20 it didn't work while the same changes when i made in C++ 11 it is working perfectly.