<doocs>0242.Valid Anagram_1.py
def isAnagram( s: str, t: str) -> bool:
    if len(s) != len(t):
        return False
    chars = [0] * 26
    for i in range(len(s)):
        chars[ord(s[i]) - ord('a')] += 1
        chars[ord(t[i]) - ord('a')] -= 1
    return all(c == 0 for c in chars)
def sample_funcname ( var_0 : str , var_2 : str ) -> bool :
    if len ( var_0 ) != len ( var_2 ) :
        return False
    var_8 = [ 0 ] * 26
    for var_10 in range ( len ( var_0 ) ) :
        var_8 [ ord ( var_0 [ var_10 ] ) - ord ( 'a' ) ] += 1
        var_8 [ ord ( var_2 [ var_10 ] ) - ord ( 'a' ) ] -= 1
    return all ( var_15 == 0 for var_15 in var_8 )
