Jelly, 4 bytes
O^/Ọ
Takes input as a list of the two strings, e.g. ['abcde', '01234'].
How?
O # ord: cast to number (automatically vectorizes)
^/ # Reduce by XOR. XOR automatically vectorizesapplies to corresponding elements
and pads as desired to work if the two strings are different lengths
Ọ # chr: cast to character (vectorizes once again)
Jelly, 4 bytes
O^/Ọ
Takes input as a list of the two strings, e.g. ['abcde', '01234'].
How?
O # ord: cast to number (automatically vectorizes)
^/ # Reduce by XOR. XOR automatically vectorizes
and pads as desired to work if the two strings are different lengths
Ọ # chr: cast to character (vectorizes once again)
Jelly, 4 bytes
O^/Ọ
Takes input as a list of the two strings, e.g. ['abcde', '01234'].
How?
O # ord: cast to number (automatically vectorizes)
^/ # Reduce by XOR. XOR automatically applies to corresponding elements
and pads as desired to work if the two strings are different lengths
Ọ # chr: cast to character (vectorizes once again)
Jelly, 4 bytes
O^/Ọ
Takes input as a list of the two strings, e.g. ['abcde', '01234'].
How?
O # ord: cast to number (automatically vectorizes)
^/ # Reduce by XOR. XOR automatically vectorizes
and pads as desired to work if the two strings are different lengths
Ọ # chr: cast to character (vectorizes once again)