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)
fireflame241
- 16.4k
- 2
- 31
- 74