242 - Valid Anagram
Written on October 18, 2017
Tweet
Given two strings s and t, write a function to determine if t is an anagram of s.
class Solution(object):
def isAnagram(self, s, t):
"""
:type s: str
:type t: str
:rtype: bool
"""
return sorted(s) == sorted(t)