String t is produced by shuffling s and adding one extra letter.
t
s
Return that extra letter.
s = "abcd", t = "abcde"
"e"
s = "", t = "y"
"y"
0 <= s.length <= 1000 t.length === s.length + 1 Both strings are lowercase English letters.
Topics
Implement findTheDifference in the editor and return the answer — printing it is never graded.
findTheDifference
Problem 70 of 1146 in the arena