12 lines
202 B
Python
12 lines
202 B
Python
class Solution:
|
|
def isAnagram(self, s: str, t: str) -> bool:
|
|
|
|
return sorted(s) == sorted(t)
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
s = Solution()
|
|
print( s.isAnagram("abc", "cbaa") ) |