#NEWLINE# def isAnagram( self , s , t ) : #NEWLINE# #INDENT# if ( len ( s ) != len ( c ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# count = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for c in s : #NEWLINE# #INDENT# if ( c . lower ( ) in count ) : #NEWLINE# #INDENT# count [ c . lower ( ) ] += 1 #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# count [ c . lower ( ) ] = 1 #NEWLINE# #UNINDENT# #UNINDENT# for c in t : #NEWLINE# #INDENT# if ( c . lower ( ) in count ) : #NEWLINE# #INDENT# count [ c . lower ( ) ] -= 1 #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# count [ c . lower ( ) ] = ( - 1 ) #NEWLINE# #UNINDENT# if ( count [ c . lower ( ) ] < 0 ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# #UNINDENT# return True