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.
It says it has to be resolved in one line "you cannot add or remove lines to the code."
So this was my solution in Javascript, anyway I'm facing the same issue as everyone, it's broken:
return input = chunk.split('\n')[0] ^ chunk.split('\n')[1];
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
XOR Strings 3
You are viewing a single comment's thread. Return to all comments →
It says it has to be resolved in one line "you cannot add or remove lines to the code."
So this was my solution in Javascript, anyway I'm facing the same issue as everyone, it's broken: return input = chunk.split('\n')[0] ^ chunk.split('\n')[1];