static int find ( int x ) {
  if ( x == p [ x ] ) return x ;
  return p [ x ] = find ( p [ x ] ) ;
}

static int find ( int x ) { if ( x == p [ x ] ) return x ; return p [ x ] = find ( p [ x ] ) ; }
(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: (identifier) right: (array_access array: (identifier) index: (identifier)))) consequence: (return_statement (identifier))) (return_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (method_invocation name: (identifier) arguments: (argument_list (array_access array: (identifier) index: (identifier))))))))