One line easy python solution sharing

  • 0

    The code is simple and short while not fast enough, but I'm willing to share with you.

        def isAnagram(self, s, t):
            :type s: str
            :type t: str
            :rtype: bool
            return sorted(s)==sorted(t)

Log in to reply

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