package leetcode;

/**
 * https://leetcode.com/problems/array-of-doubled-pairs/
 */
public class Problem954 {
    public boolean canReorderDoubled(int[] A) {
        // TODO
        return false;
    }

    public static void main(String[] args) {
        Problem954 prob = new Problem954();
        System.out.println(prob.canReorderDoubled(new int[]{3, 1, 3, 6})); // false
        System.out.println(prob.canReorderDoubled(new int[]{2, 1, 2, 6})); // false
        System.out.println(prob.canReorderDoubled(new int[]{4, -2, 2, -4})); // true
        System.out.println(prob.canReorderDoubled(new int[]{1, 2, 4, 16, 8, 4})); // false
    }
}

@@ -167,16 +167,159 @@
 // TODO%0A
+        for (int i = 0; i %3C A.length / 2; i++) %7B%0A            System.out.println(i + %22: %22 + A%5B2 * i + 1%5D + %22 --%3E %22 + (2 * A%5B2 * i%5D));%0A        %7D%0A
         
@@ -428,16 +428,18 @@
 m954();%0A
+//
         
@@ -506,32 +506,34 @@
  6%7D)); // false%0A
+//
         System.o
@@ -596,24 +596,26 @@
 ); // false%0A
+//
         Syst
@@ -687,16 +687,103 @@
 // true%0A
+        System.out.println(prob.canReorderDoubled(new int%5B%5D%7B-2, -4, 2, 4%7D)); // true%0A//
         

Update problem 954