static int minXOR ( int arr [ ] , int n ) {
  int min_xor = Integer . MAX_VALUE ;
  root = new TrieNode ( ) ;
  insert ( arr [ 0 ] ) ;
  for ( int i = 1 ;
  i < n ;
  i ++ ) {
    min_xor = Math . min ( min_xor , minXORUtil ( arr [ i ] ) ) ;
    insert ( arr [ i ] ) ;
  }
  return min_xor ;
}

static int minXOR ( int arr [ ] , int n ) { int min_xor = Integer . MAX_VALUE ; root = new TrieNode ( ) ; insert ( arr [ 0 ] ) ; for ( int i = 1 ; i < n ; i ++ ) { min_xor = Math . min ( min_xor , minXORUtil ( arr [ i ] ) ) ; insert ( arr [ i ] ) ; } return min_xor ; }
(method_declaration (modifiers) type: (integral_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (integral_type) name: (identifier) dimensions: (dimensions)) (formal_parameter type: (integral_type) name: (identifier))) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (field_access object: (identifier) field: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (object_creation_expression type: (type_identifier) arguments: (argument_list)))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (array_access array: (identifier) index: (decimal_integer_literal))))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier) (method_invocation name: (identifier) arguments: (argument_list (array_access array: (identifier) index: (identifier)))))))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (array_access array: (identifier) index: (identifier))))))) (return_statement (identifier))))