@@ -0,0 +1,771 @@
+// https://community.topcoder.com/stat?c=problem_statement&pm=10295%0A%0Apublic class GroupedWordChecker %7B%0A%09public static int howMany(String%5B%5D words) %7B%0A%09%09int groupedWordCount = 0;%0A%09%09%0A%09%09for (String word : words) %7B%0A%09%09%09boolean wordIsGrouped = true;%0A%09%09%09boolean%5B%5D letterIsUsed = new boolean%5B26%5D;%0A%09%09%09%0A%09%09%09for (int i = 0; i %3C word.length(); ++i) %7B%0A%09%09%09%09char currentLetter = word.charAt(i);%0A%09%09%09%09int currentLetterIndex = (currentLetter - 'a'); // 0 - 'a', 25 - 'z'%0A%09%09%09%09%0A%09%09%09%09if (letterIsUsed%5BcurrentLetterIndex%5D && %0A%09%09%09%09%09i %3E 0 && %0A%09%09%09%09%09currentLetter != word.charAt(i-1))%0A%09%09%09%09%7B%0A%09%09%09%09%09wordIsGrouped = false;%0A%09%09%09%09%09break;%0A%09%09%09%09%7D%0A%09%09%09%09else %7B%0A%09%09%09%09%09letterIsUsed%5BcurrentLetterIndex%5D = true;%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09if (wordIsGrouped) %7B%0A%09%09%09%09groupedWordCount++;%0A%09%09%09%7D%0A%09%09%7D%0A%09%09%0A%09%09return groupedWordCount;%0A%09%7D%0A%7D%0A

Create GroupedWordChecker.java