static int find ( int k ) {
  if ( parent [ k ] != k ) parent [ k ] = find ( parent [ k ] ) ;
  return parent [ k ] ;
}

static int find ( int k ) { if ( parent [ k ] != k ) parent [ k ] = find ( parent [ k ] ) ; return parent [ k ] ; }
(method_declaration (modifiers) type: (integral_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (integral_type) name: (identifier))) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (identifier))) consequence: (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (method_invocation name: (identifier) arguments: (argument_list (array_access array: (identifier) index: (identifier))))))) (return_statement (array_access array: (identifier) index: (identifier)))))