@@ -0,0 +1,397 @@
+// https://community.topcoder.com/stat?c=problem_statement&pm=6665%0A%0Apublic class DerivativeSequence %7B%0A%09public static int%5B%5D derSeq(int%5B%5D a, int n) %7B%0A%09%09if (n == 0) %7B%0A%09%09%09return a;%0A%09%09%7D%0A%09%09%0A%09%09int%5B%5D derivativeSequence = new int%5Ba.length-1%5D;%0A%09%09%0A%09%09int j = 0;%0A%09%09for (int i = 1; i %3C a.length; ++i) %7B%0A%09%09%09derivativeSequence%5Bj%5D = ( a%5Bi%5D - a%5Bi-1%5D );%0A%09%09%09j++;%0A%09%09%7D%0A%09%09%0A%09%09return derSeq(derivativeSequence, n-1);%0A%09%7D%0A%7D%0A

Create DerivativeSequence.java