<gouthampradhan>two_pointers_RemoveDuplicates_1.java
public int removeDuplicates(int[] nums) {
    if (nums.length == 1) return 1;
    int size = 1;
    for (int j = 0, i = 1; i < nums.length; i++) {
      if (nums[i] != nums[i - 1]) {
        size++;
        j++;
        nums[j] = nums[i];
      }
    }
    return size;
  }
public int sample_funcname ( int [ ] var_0 ) {
  if ( var_0 . length == 1 ) return 1 ;
  int var_3 = 1 ;
  for ( int var_5 = 0 , var_6 = 1 ;
  var_6 < var_0 . length ;
  var_6 ++ ) {
    if ( var_0 [ var_6 ] != var_0 [ var_6 - 1 ] ) {
      var_3 ++ ;
      var_5 ++ ;
      var_0 [ var_5 ] = var_0 [ var_6 ] ;
    }
  }
  return var_3 ;
}
