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.
The problem specify debug the code, but for JavaScript, there is no code. Here my solution for JavaScript, not working despite solution is correct 🤷♂️ (I guess is because it does not have anything to compare lol)
process.stdin.resume();process.stdin.setEncoding("ascii");varinput="";process.stdin.on("data",function(chunk){input+=chunk;});process.stdin.on("end",function(){// now we can read/parse inputconst[s,t]=input.split("\n")letres=""for(leti=0;i<s.length;i++)res+=+(s[i]!==t[i])console.log(res)});
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 →
The problem specify debug the code, but for JavaScript, there is no code. Here my solution for JavaScript, not working despite solution is correct 🤷♂️ (I guess is because it does not have anything to compare lol)