public static boolean [ ] DFS ( Trie tn , Node cur ) {
  boolean [ ] winner = new boolean [ 2 ] ;
  boolean leaf = true ;
  for ( int i = 0 ;
  i < 26 ;
  i ++ ) {
    if ( cur . children [ i ] != null ) {
      leaf = false ;
      boolean [ ] win = DFS ( tn , cur . children [ i ] ) ;
      winner [ 0 ] |= ! win [ 0 ] ;
      winner [ 1 ] |= ! win [ 1 ] ;
    }
  }
  return ( leaf ) ? new boolean [ ] {
    false , true }
    : winner ;
  }
  
public static boolean [ ] DFS ( Trie tn , Node cur ) { boolean [ ] winner = new boolean [ 2 ] ; boolean leaf = true ; for ( int i = 0 ; i < 26 ; i ++ ) { if ( cur . children [ i ] != null ) { leaf = false ; boolean [ ] win = DFS ( tn , cur . children [ i ] ) ; winner [ 0 ] |= ! win [ 0 ] ; winner [ 1 ] |= ! win [ 1 ] ; } } return ( leaf ) ? new boolean [ ] { false , true } : winner ; }
(method_declaration (modifiers) type: (array_type element: (boolean_type) dimensions: (dimensions)) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier)) (formal_parameter type: (type_identifier) name: (identifier))) body: (block (local_variable_declaration type: (array_type element: (boolean_type) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (array_creation_expression type: (boolean_type) dimensions: (dimensions_expr (decimal_integer_literal))))) (local_variable_declaration type: (boolean_type) declarator: (variable_declarator name: (identifier) value: (true))) (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 (if_statement condition: (parenthesized_expression (binary_expression left: (array_access array: (field_access object: (identifier) field: (identifier)) index: (identifier)) right: (null_literal))) consequence: (block (expression_statement (assignment_expression left: (identifier) right: (false))) (local_variable_declaration type: (array_type element: (boolean_type) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (method_invocation name: (identifier) arguments: (argument_list (identifier) (array_access array: (field_access object: (identifier) field: (identifier)) index: (identifier)))))) (expression_statement (assignment_expression left: (array_access array: (identifier) index: (decimal_integer_literal)) right: (unary_expression operand: (array_access array: (identifier) index: (decimal_integer_literal))))) (expression_statement (assignment_expression left: (array_access array: (identifier) index: (decimal_integer_literal)) right: (unary_expression operand: (array_access array: (identifier) index: (decimal_integer_literal))))))))) (return_statement (ternary_expression condition: (parenthesized_expression (identifier)) consequence: (array_creation_expression type: (boolean_type) dimensions: (dimensions) value: (array_initializer (false) (true))) alternative: (identifier)))))