242. Valid Anagram
242. Valid Anagram 难度:eclass Solution:n def isAnagram(self, s: str, t: str) -> bool:n return collections.Coun
242. Valid Anagram
难度:e
class Solution:n def isAnagram(self, s: str, t: str) -> bool:n return collections.Counter(s) == collections.Counter(t)
class Solution:n def isAnagram(self, s: str, t: str) -> bool:n return sorted(s) == sorted(t)