comefrom: <qiyuangong>954_Array_of_Doubled_Pairs_1.java
code: public boolean canReorderDoubled(int[] A) {
          HashMap<Integer, Integer> valueMap = new HashMap<>();
          A = Arrays.stream(A).
                  boxed().
                  sorted((a, b) -> Integer.compare(Math.abs(a), Math.abs(b))).
                  mapToInt(i -> i).
                  toArray();
          for (int n: A) valueMap.put(n, valueMap.getOrDefault(n, 0) + 1);
          for (int n: A) {
              if (valueMap.get(n) <= 0) continue;
              if (valueMap.containsKey(2 * n) && valueMap.get(2 * n) > 0) {
                  valueMap.put(n, valueMap.get(n) - 1);
                  valueMap.put(2 * n, valueMap.get(2 * n) - 1);
              } else {
                  return false;
              }
          }
          return true;
      }
masked: public boolean var_0 ( int [ ] var_1 ) {
    HashMap < Integer , Integer > var_4 = new HashMap < > ( ) ;
    var_1 = Arrays . stream ( var_1 ) . boxed ( ) . sorted ( ( var_8 , var_6 ) -> Integer . compare ( Math . abs ( var_8 ) , Math . abs ( var_6 ) ) ) . mapToInt ( var_7 -> var_7 ) . toArray ( ) ;
    for ( int var_17 : var_1 ) var_4 . put ( var_17 , var_4 . getOrDefault ( var_17 , 0 ) + 1 ) ;
    for ( int var_17 : var_1 ) {
      if ( var_4 . get ( var_17 ) <= 0 ) continue ;
      if ( var_4 . containsKey ( 2 * var_17 ) && var_4 . get ( 2 * var_17 ) > 0 ) {
        var_4 . put ( var_17 , var_4 . get ( var_17 ) - 1 ) ;
        var_4 . put ( 2 * var_17 , var_4 . get ( 2 * var_17 ) - 1 ) ;
      }
      else {
        return false ;
      }
    }
    return true ;
  }
  