Chapter1/IsOnePermutationOfOther.py
def isOnePermutationOfOther(s1, s2): 
    '''To Check If One String IS Permutation Of Other in range of a-z'''
    a = [0]*26
    b = [0]*26
    for i in s1: a[ord(i)-97]+=1
    for i in s2: b[ord(i)-97]+=1
    return bool(a==b)
To Check If One String IS Permutation Of Other in range of a-z
To Check If One String IS Permutation Of Other in range of a-z
To Check If One String IS Permutation Of Other in range of a - z
def isOnePermutationOfOther(s1, s2): 
    a = [0]*26
    b = [0]*26
    for i in s1: a[ord(i)-97]+=1
    for i in s2: b[ord(i)-97]+=1
    return bool(a==b)
def isOnePermutationOfOther ( s1 , s2 ) : a = [ 0 ] * 26 b = [ 0 ] * 26 for i in s1 : a [ ord ( i ) - 97 ] += 1 for i in s2 : b [ ord ( i ) - 97 ] += 1 return bool ( a == b )
To Check If One String IS Permutation Of Other in range of a-z
To Check If One String IS Permutation Of Other in range of a - z
'''To Check If One String IS Permutation Of Other in range of a-z'''
s1
s2