classSolution{publicintmaxProduct(String[] words){int[] mask =newint[words.length];for(int i =0; i < words.length; i++){for(char c : words[i].toCharArray()){mask[i]|=1<<(c -'a'+1);// 关键代码}}int res =0;for(int i =0; i < words.length; i++){for(int j = i +1; j < words.length; j++){if((mask[i]& mask[j])==0) res =Math.max(res, words[i].length()* words[j].length());}}return res;}}