题目 Given two strings s and t , write a function to determine if t is an anagram of s. 解题思路 使用Counter统计两个字符串,判断是否相同 代码 class Solution: def isAnagram(self, s: str, t: str) -> bool: return Counter(s) == Counter(t) 视频讲解 YouTube<--欢迎点击订阅 视频讲解 bilibili<--欢迎点击订阅 Previous LeetCode 138 Copy List with Random Pointer (Python) Next LeetCode 1342 Number of Steps to Reduce a Number to Zero (Python)