<s> """<STR_LIT>""" <EOL> from collections import defaultdict <EOL> __author__ = '<STR_LIT>' <EOL> class Solution : <EOL> def isAnagram ( self , s , t ) : <EOL> """<STR_LIT>""" <EOL> cnt = defaultdict ( int ) <EOL> for c in s : <EOL> cnt [ c ] += <NUM_LIT:1> <EOL> for c in t : <EOL> if c not in cnt or cnt [ c ] < <NUM_LIT:1> : <EOL> return False <EOL> cnt [ c ] -= <NUM_LIT:1> <EOL> for v in cnt . values ( ) : <EOL> if v != <NUM_LIT:0> : <EOL> return False <EOL> return True </s>
