public static long combi ( int n , int r ) {
  if ( n <= 0 || n < r ) {
    return 0 ;
  }
  r = Math . min ( n - r , r ) ;
  if ( r == 0 ) {
    return 1 ;
  }
  if ( arrayCombi [ n ] [ r ] > 0 ) {
    return arrayCombi [ n ] [ r ] ;
  }
  arrayCombi [ n ] [ r ] = advMod ( combi ( n - 1 , r - 1 ) + combi ( n - 1 , r ) ) ;
  return arrayCombi [ n ] [ r ] ;
}

public static long combi ( int n , int r ) { if ( n <= 0 || n < r ) { return 0 ; } r = Math . min ( n - r , r ) ; if ( r == 0 ) { return 1 ; } if ( arrayCombi [ n ] [ r ] > 0 ) { return arrayCombi [ n ] [ r ] ; } arrayCombi [ n ] [ r ] = advMod ( combi ( n - 1 , r - 1 ) + combi ( n - 1 , r ) ) ; return arrayCombi [ n ] [ r ] ; }
(method_declaration (modifiers) type: (integral_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (integral_type) name: (identifier)) (formal_parameter type: (integral_type) name: (identifier))) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (binary_expression left: (identifier) right: (identifier)))) consequence: (block (return_statement (decimal_integer_literal)))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (block (return_statement (decimal_integer_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (array_access array: (array_access array: (identifier) index: (identifier)) index: (identifier)) right: (decimal_integer_literal))) consequence: (block (return_statement (array_access array: (array_access array: (identifier) index: (identifier)) index: (identifier))))) (expression_statement (assignment_expression left: (array_access array: (array_access array: (identifier) index: (identifier)) index: (identifier)) right: (method_invocation name: (identifier) arguments: (argument_list (binary_expression left: (method_invocation name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (decimal_integer_literal)) (binary_expression left: (identifier) right: (decimal_integer_literal)))) right: (method_invocation name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (decimal_integer_literal)) (identifier)))))))) (return_statement (array_access array: (array_access array: (identifier) index: (identifier)) index: (identifier)))))