4 line python, 99%


  • 0
    S
    def isAnagram(self, s, t):
            for l in set(s+t):
                if s.count(l) != t.count(l): return False
            return True
    

Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.