"""
leetcode 242. Valid Anagram
문제 링크 https://leetcode.com/problems/valid-anagram/
"""

"""
Runtime: 48 ms
Memory Usage: 15.1 MB
"""
class Solution:
    def isAnagram(self, s: str, t: str) -> bool:
        return sorted(s) == sorted(t)


"""
Runtime: 40 ms
Memory Usage: 14.4 MB
"""
from collections import Counter

class Solution2:
    def isAnagram(self, s: str, t: str) -> bool:
        if len(s) != len(t):
            return False
        return dict(Counter(s)) == dict(Counter(t))
9b7cb0cefe185e9701b6108d5b8decf74fd9efa6
<mask token>


class Solution2:

    def isAnagram(self, s: str, t: str) ->bool:
        if len(s) != len(t):
            return False
        return dict(Counter(s)) == dict(Counter(t))

<mask token>


class Solution:
    <mask token>


<mask token>


class Solution2:

    def isAnagram(self, s: str, t: str) ->bool:
        if len(s) != len(t):
            return False
        return dict(Counter(s)) == dict(Counter(t))

<mask token>


class Solution:

    def isAnagram(self, s: str, t: str) ->bool:
        return sorted(s) == sorted(t)


<mask token>


class Solution2:

    def isAnagram(self, s: str, t: str) ->bool:
        if len(s) != len(t):
            return False
        return dict(Counter(s)) == dict(Counter(t))

<mask token>


class Solution:

    def isAnagram(self, s: str, t: str) ->bool:
        return sorted(s) == sorted(t)


<mask token>
from collections import Counter


class Solution2:

    def isAnagram(self, s: str, t: str) ->bool:
        if len(s) != len(t):
            return False
        return dict(Counter(s)) == dict(Counter(t))

"""
leetcode 242. Valid Anagram
문제 링크 https://leetcode.com/problems/valid-anagram/
"""

"""
Runtime: 48 ms
Memory Usage: 15.1 MB
"""
class Solution:
    def isAnagram(self, s: str, t: str) -> bool:
        return sorted(s) == sorted(t)


"""
Runtime: 40 ms
Memory Usage: 14.4 MB
"""
from collections import Counter

class Solution2:
    def isAnagram(self, s: str, t: str) -> bool:
        if len(s) != len(t):
            return False
        return dict(Counter(s)) == dict(Counter(t))