def isAnagram(self, s, t):
        """
        bucket

        :type s: str
        :type t: str
        :rtype: bool
        """
        cnt = defaultdict(int)
        for c in s:
            cnt[c] += 1

        for c in t:
            if c not in cnt or 1 < cnt[c]:
                return False

            cnt[c] -= 1

        for v in cnt.values():
            if v != 0:
                return False

        return True
dataset/ETHPy150Open algorhythms/LeetCode/242 Valid Anagram.py/Solution.isAnagram/swapped operands of `<`