Search for different keys
result = new ArrayList < > ( ) ; for ( int i = 0 ; i < vect . size ( ) ; i ++ ) { search ( root , vect . get ( i ) , i ) ; if ( result . size ( ) > 0 ) return true ; } return false ; }