static int largest ( int arr [ ] , int n ) {
  Vector < Integer > v = new Vector < > ( ) ;
  for ( Integer a : arr ) v . add ( a ) ;
  v . add ( Integer . MAX_VALUE ) ;
  n ++ ;
  int res = 0 ;
  for ( int bit = 31 ;
  bit >= 0 ;
  bit -- ) {
    int count = checkBit ( res | ( 1 << bit ) , v , n ) ;
    if ( ( count | 1 ) != 1 ) res |= ( 1 << bit ) ;
  }
  return res ;
}

static int largest ( int arr [ ] , int n ) { Vector < Integer > v = new Vector < > ( ) ; for ( Integer a : arr ) v . add ( a ) ; v . add ( Integer . MAX_VALUE ) ; n ++ ; int res = 0 ; for ( int bit = 31 ; bit >= 0 ; bit -- ) { int count = checkBit ( res | ( 1 << bit ) , v , n ) ; if ( ( count | 1 ) != 1 ) res |= ( 1 << bit ) ; } return res ; }
(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: (generic_type (type_identifier) (type_arguments (type_identifier))) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (generic_type (type_identifier) (type_arguments)) arguments: (argument_list)))) (enhanced_for_statement type: (type_identifier) name: (identifier) value: (identifier) body: (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (field_access object: (identifier) field: (identifier))))) (expression_statement (update_expression (identifier))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (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: (decimal_integer_literal)) update: (update_expression (identifier)) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (decimal_integer_literal) right: (identifier)))) (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) right: (decimal_integer_literal))) consequence: (expression_statement (assignment_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (decimal_integer_literal) right: (identifier)))))))) (return_statement (identifier))))