fork download
  1. # your code goes here
  2. class Solution:
  3. def isAnagram(self, s: str, t: str) -> bool:
  4. def sort_string(string):
  5. return "".join(sorted(list(string)))
  6.  
  7. return True if sort_string(s) == sort_string(t) else False
Success #stdin #stdout 0.12s 14196KB
stdin
Standard input is empty
stdout
Standard output is empty