Function to find maximum size of DSU tree
def findMax ( n , W ) : NEW_LINE INDENT maxi = 0 NEW_LINE for i in range ( 1 , n ) : NEW_LINE INDENT if ( W [ i ] % 2 == 0 ) : NEW_LINE INDENT maxi = max ( maxi , sz [ i ] ) ; NEW_LINE DEDENT DEDENT return maxi ; NEW_LINE DEDENT