查找那个不同的字符


Submit solution

Points: 10
Time limit: 1.0s
Memory limit: 4M

Author:
Problem type
Allowed languages
C, C++

查找那个不同的字符

输入两个字符串s和t。
字符串 t 是通过将字符串 s 随机打乱顺序,并在一个随机位置插入一个字符生成的。请返回插入到 t 中的那个字符。

示例:
输入:
abcd 
abcde
输出:
e
解释:

'e' 是被插入的字符。

输入:

y
输出:
y
约束条件:

\( 0 \le s.length \le 1000 \)
t.length == s.length + 1
s 和 t 只包含小写字母。


Comments

There are no comments at the moment.