@@ -0,0 +1,704 @@
+import java.util.Arrays;%0A%0Apublic class Solution %7B%0A%0A  public int solution(int%5B%5D A)%7B%0A%09%09%0A%09%09int leftValueRise = 0;%0A%09%09int rightValueRise = 0;%0A%09%09int%5B%5D sumsLeft = new int %5BA.length%5D;%0A%09%09int%5B%5D sumsRight =  new int %5BA.length%5D;%0A%09%09int%5B%5D results =  new int %5BA.length%5D;%0A%09%09%0A%09%09for (int i = 0; i %3C A.length; i++) %7B%0A%09%09%09%0A%09%09%09leftValueRise = leftValueRise + A%5Bi%5D;%0A%09%09%09sumsLeft%5Bi%5D = leftValueRise;%0A%09%09%09%0A%09%09%09rightValueRise = rightValueRise + A%5B(A.length - 1) - i%5D;%0A%09%09%09sumsRight%5B(A.length - 1) - i%5D = rightValueRise;%0A%09%09%09%0A%09%09%7D%0A%0A%09%09for (int i = 0; i %3C (A.length - 1); i++) %7B%0A%09%09%09%0A%09%09%09int tempValue = sumsLeft%5Bi%5D -  sumsRight%5Bi + 1%5D;%0A%09%09%09results%5Bi%5D = Math.abs(tempValue);%0A%09%09%09%0A%09%09%7D%0A%09%09%0A%09%09Arrays.sort(results);%0A%09%09%0A%09%09return results%5B1%5D;%0A%09%09%0A%09%7D%0A%7D%0A

Create TapeEquilibrium.java