private static int loast ( int [ ] t , int n , int i , int a , int b ) {
  if ( i == n ) return Math . max ( a , b ) ;
  return Math . min ( loast ( t , n , i + 1 , a + t [ i ] , b ) , loast ( t , n , i + 1 , a , b + t [ i ] ) ) ;
}

private static int loast ( int [ ] t , int n , int i , int a , int b ) { if ( i == n ) return Math . max ( a , b ) ; return Math . min ( loast ( t , n , i + 1 , a + t [ i ] , b ) , loast ( t , n , i + 1 , a , b + t [ i ] ) ) ; }
(method_declaration (modifiers) type: (integral_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (integral_type) dimensions: (dimensions)) name: (identifier)) (formal_parameter type: (integral_type) name: (identifier)) (formal_parameter type: (integral_type) name: (identifier)) (formal_parameter type: (integral_type) name: (identifier)) (formal_parameter type: (integral_type) name: (identifier))) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (return_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier) (identifier))))) (return_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_invocation name: (identifier) arguments: (argument_list (identifier) (identifier) (binary_expression left: (identifier) right: (decimal_integer_literal)) (binary_expression left: (identifier) right: (array_access array: (identifier) index: (identifier))) (identifier))) (method_invocation name: (identifier) arguments: (argument_list (identifier) (identifier) (binary_expression left: (identifier) right: (decimal_integer_literal)) (identifier) (binary_expression left: (identifier) right: (array_access array: (identifier) index: (identifier))))))))))