Chapter1/InplaceRotateMatrixBy90Degree.py
def RotateMatrixBy90Degree(size, data): 
    '''To Rotate Matrix By 90 Degree'''
    for i in range(size//2):
        data[i],data[size-i-1]=data[size-i-1],data[i]
    data = TransposeMatrix(size, data)
    return data
To Rotate Matrix By 90 Degree
To Rotate Matrix By 90 Degree
To Rotate Matrix By 90 Degree
def RotateMatrixBy90Degree(size, data): 
    for i in range(size//2):
        data[i],data[size-i-1]=data[size-i-1],data[i]
    data = TransposeMatrix(size, data)
    return data
def RotateMatrixBy90Degree ( size , data ) : for i in range ( size // 2 ) : data [ i ] , data [ size - i - 1 ] = data [ size - i - 1 ] , data [ i ] data = TransposeMatrix ( size , data ) return data
To Rotate Matrix By 90 Degree
To Rotate Matrix By 90 Degree
'''To Rotate Matrix By 90 Degree'''
size
data