@@ -0,0 +1,521 @@
+// https://community.topcoder.com/stat?c=problem_statement&pm=4561%0A%0Apublic class Straights %7B%0A%09public static int howMany(int%5B%5D hand, int k) %7B%0A%09%09int straightCount = 0;%0A%09%0A%09%09for (int sequenceStartIndex = 0; (sequenceStartIndex+k) %3C= hand.length; ++sequenceStartIndex) %0A%09%09%7B%0A%09%09%09int product = 1;%0A%09%09%09%0A%09%09%09for (int sequenceElementIndex = 0; sequenceElementIndex %3C k; ++sequenceElementIndex) %7B%0A%09%09%09%09product *= hand%5BsequenceStartIndex + sequenceElementIndex%5D;%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09straightCount += product;%0A%09%09%7D%0A%09%09%0A%09%09return straightCount;%0A%09%7D%0A%7D%0A

Create Straights.java