(p)
Find the conjugate of a partition.
    E.g. len(p) = max(conjugate(p)) and vice versa.
Find the conjugate of a partition.
    E.g. len(p) = max(conjugate(p)) and vice versa.
Find the conjugate of a partition . E . g . len ( p ) = max ( conjugate ( p )) and vice versa .
def conjugate(p):
    """
    Find the conjugate of a partition.
    E.g. len(p) = max(conjugate(p)) and vice versa.
    """
    result = []
    j = len(p)
    if j <= 0:
        return result
    while True:
        result.append(j)
        while len(result) >= p[j-1]:
            j -= 1
            if j == 0:
                return result
def conjugate ( p ) : result = [ ] j = len ( p ) if j <= 0 : return result while True : result . append ( j ) while len ( result ) >= p [ j - 1 ] : j -= 1 if j == 0 : return result