You are viewing a single comment's thread. Return to all comments →
C++11 (more at https://github.com/IhorVodko/Hackerrank_solutions/tree/master , feel free to give a star :) )
string strings_xor(string s, string t) { string res = ""; for(int i = 0; i < s.size(); i++) { if(s[i] == t[i]) res += '0'; else res += '1'; } return res; }
Seems like cookies are disabled on this browser, please enable them to open this website
XOR Strings
You are viewing a single comment's thread. Return to all comments →
C++11 (more at https://github.com/IhorVodko/Hackerrank_solutions/tree/master , feel free to give a star :) )