@@ -0,0 +1,527 @@
+// https://community.topcoder.com/stat?c=problem_statement&pm=2268%0A%0Apublic class KiloMan %7B%0A%09public static int hitsTaken(int%5B%5D pattern, String jumps) %7B%0A%09%09int hitsCount = 0;%0A%09%09%0A%09%09for (int i = 0; i %3C pattern.length; ++i) %7B%0A%09%09%09int currentHeight = pattern%5Bi%5D;%0A%09%09%09char currentKiloManAction = jumps.charAt(i);%0A%09%09%09if (currentKiloManAction == 'S' && (currentHeight == 1 %7C%7C currentHeight == 2)) %7B%0A%09%09%09%09hitsCount++;%0A%09%09%09%7D%0A%09%09%09else if (currentKiloManAction == 'J' && currentHeight %3E 2) %7B%0A%09%09%09%09hitsCount++;%0A%09%09%09%7D%0A%09%09%7D%0A%09%09%0A%09%09return hitsCount;%0A%09%7D%0A%7D%0A

Create KiloMan.java