class Solution:
def isAnagram(self, s: str, t: str) -> bool:
return sorted(s) == sorted(t)
from collections import Counter
class Solution:
def isAnagram(self, s: str, t: str) -> bool:
return Counter(s) == Counter(t)
sorted보다 Counter로 한 게 더 빨랐다.
유의미한건지는 일단 내일 알아볼 것