@@ -0,0 +1,488 @@
+// https://community.topcoder.com/stat?c=problem_statement&pm=11741%0A%0Apublic class PairingPawns %7B%0A%09public static int savedPawnCount(int%5B%5D start) %7B%0A%09%09boolean pairPawnValueExists = true;%0A%09%09%0A%09%09while (pairPawnValueExists) %7B%0A%09%09%09for (int i = 1; i %3C start.length; ++i) %7B%0A%09%09%09%09pairPawnValueExists = false;%0A%09%09%09%09if (start%5Bi%5D %3E= 2) %7B%0A%09%09%09%09%09pairPawnValueExists = true;%0A%09%09%09%09%09start%5Bi%5D -= 2;%0A%09%09%09%09%09start%5Bi-1%5D += 1;%0A%09%09%09%09%09break;%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%7D%0A%09%09%0A%09%09int maxPawnCount = start%5B0%5D;%0A%09%09%0A%09%09return maxPawnCount;%0A%09%7D%0A%7D%0A

Create PairingPawns.java