XOR Strings 2

  • + 0 comments

    for java user public static String stringsXOR(String s, String t) { String res = new String(""); for(int i = 0; i < s.length(); i++) { if(s.charAt(i) == t.charAt(i)) res += "0"; else res += "1"; } use this code it will clear as the note in problem suggest to to not delete or add code annd only 3 changes so this will help as i cleared return res; }