Python实现"找不一样"的一种方法

给定两个字符串 s 和 t,它们只包含小写字母。python 字符串 t 由字符串 s 随机重排,而后在随机位置添加一个字母。算法 请找出在 t 中被添加的字母spa Example:code Input: s = "abcd" t = "abcde" Output: e Explanation: 'e' is the letter that was added. 1:将s和t字符串用set
相关文章
相关标签/搜索