Python solutions (sort and dictionary).
    \n    def isAnagram1(self, s, t):\n        dic1, dic2 = {}, {}\n        for item in s:\n            dic1[item] = dic1.get(item, 0) + 1\n        for item in 
        \n    def isAnagram1(self, s, t):\n        dic1, dic2 = {}, {}\n        for item in s:\n            dic1[item] = dic1.get(item, 0) + 1\n        for item in t:\n            dic2[item] = dic2.get(item, 0) + 1\n        return dic1 == dic2\n        \n    def isAnagram2(self, s, t):\n        dic1, dic2 = [0]*26, [0]*26\n        for item in s:\n            dic1[ord(item)-ord('a')] += 1\n        for item in t:\n            dic2[ord(item)-ord('a')] += 1\n        return dic1 == dic2\n        \n    def isAnagram3(self, s, t):\n        return sorted(s) == sorted(t)
['Sorting', 'Python']