@@ -0,0 +1,321 @@
+package hackerRank.algo.warmup;%0A%0Apublic class DiagonalDifference %7B%0A%09public static int Diff(int%5B%5D%5B%5D a)%0A%09%7B%0A%09%09int ret = 0;%0A%09%09int sum1 = 0, sum2 = 0;%0A%09%09for(int i = 0; i %3C a.length; i++) %7B%0A%09%09%09sum1 += a%5Bi%5D%5Bi%5D;%0A%09%09%09sum2 += a%5Bi%5D%5Ba.length-i-1%5D;%0A%09%09%7D%0A%09%09%0A%09%09ret = sum1 - sum2;%0A%09%09if(ret %3C 0) %7B%0A%09%09%09ret = -ret;%0A%09%09%7D%0A%09%09%0A%09%09return ret; %0A%09%7D%0A%7D%0A

Add file