题目:
题解:
class Solution: def isAnagram(self, s: str, t: str) -> bool: s_c = Counter(s) t_c = Counter(t) if(len(s_c) != len(t_c)): return False else: for key, value in s_c.items(): if t_c.get(key) != value: return False return True
上一篇:昇思25天学习打卡营第25天 | RNN实现情感分类
下一篇:【人工智能】深度学习