leetcode 242. 有效的字母異位詞

思路就是使用哈希標表,將元素存入表中,對比元素的個數。 class Solution(object): def isAnagram(self, s, t): """ :type s: str :type t: str :rtype: bool """ s1 = {} t1 = {
相關文章
相關標籤/搜索