HackerRank XOR Strings 2 problem solution
In this HackerRank XOR Strings 2 problem solution, we have given Given two strings consisting of digits 0 and 1 only, find the XOR of the two strings. Problem solution in Python. def strings_xor(s, t): res = “” for i in range(len(s)): if bool(1-int(s[i])^int(t[i])): res += ‘0’; else: res += ‘1’; return res s =…