LeetCode 389——找不同

1. 题目 2. 解答 2.1. 方法一 将 s 和 t 转化为 Python 的列表,然后遍历列表 s 的元素,将它们从列表 t 中删除,最后列表 t 中会余下一个元素,即为所求。 class Solution: def findTheDifference(self, s, t): """ :type s: str :type t: str :rtype: str """
相关文章
相关标签/搜索