comefrom: <gouthampradhan>two_pointers_ThreeSumClosest_1.java
code: public int threeSumClosest(int[] a, int target) {
      Arrays.sort(a);
      int min = Integer.MAX_VALUE, ans = -1;
      for (int i = 0, l = a.length; i < l - 2; i++) {
        if (i == 0 || !(a[i] == a[i - 1])) {
          int j = i + 1, k = l - 1;
          while (k > j) {
            if (j != i + 1 && (a[j] == a[j - 1])) {
              j++;
              continue;
            }
            int sum = a[i] + a[j] + a[k];
            if (sum < target) {
              int diff = Math.abs(sum - target);
              if (diff < min) {
                min = diff;
                ans = sum;
              }
              j++;
            } else if (sum > target) {
              int diff = Math.abs(sum - target);
              if (diff < min) {
                min = diff;
                ans = sum;
              }
              k--;
            } else {
              return sum;
            }
          }
        }
      }
      return ans;
    }
masked: public int sample_funcname ( int [ ] var_0 , int var_1 ) {
    Arrays . sort ( var_0 ) ;
    int var_2 = Integer . MAX_VALUE , var_3 = - 1 ;
    for ( int var_4 = 0 , var_5 = var_0 . length ;
    var_4 < var_5 - 2 ;
    var_4 ++ ) {
      if ( var_4 == 0 || ! ( var_0 [ var_4 ] == var_0 [ var_4 - 1 ] ) ) {
        int var_6 = var_4 + 1 , var_7 = var_5 - 1 ;
        while ( var_7 > var_6 ) {
          if ( var_6 != var_4 + 1 && ( var_0 [ var_6 ] == var_0 [ var_6 - 1 ] ) ) {
            var_6 ++ ;
            continue ;
          }
          int var_8 = var_0 [ var_4 ] + var_0 [ var_6 ] + var_0 [ var_7 ] ;
          if ( var_8 < var_1 ) {
            int var_9 = Math . abs ( var_8 - var_1 ) ;
            if ( var_9 < var_2 ) {
              var_2 = var_9 ;
              var_3 = var_8 ;
            }
            var_6 ++ ;
          }
          else if ( var_8 > var_1 ) {
            int var_9 = Math . abs ( var_8 - var_1 ) ;
            if ( var_9 < var_2 ) {
              var_2 = var_9 ;
              var_3 = var_8 ;
            }
            var_7 -- ;
          }
          else {
            return var_8 ;
          }
        }
      }
    }
    return var_3 ;
  }
  