comefrom: <awangdev>26.Remove Duplicates from Sorted Array_1.java
code: public int removeDuplicates(int[] nums) {
          if (nums == null || nums.length == 0) {
              return 0;
          }
          int index = 0;
          for (int i = 1; i < nums.length; i++) {
              if (nums[i] != nums[index]) {
                  nums[++index] = nums[i];
              }
          }
          return index + 1; 
      }
masked: public int sample_funcname ( int [ ] var_0 ) {
    if ( var_0 == null || var_0 . length == 0 ) {
      return 0 ;
    }
    int var_1 = 0 ;
    for ( int var_2 = 1 ;
    var_2 < var_0 . length ;
    var_2 ++ ) {
      if ( var_0 [ var_2 ] != var_0 [ var_1 ] ) {
        var_0 [ ++ var_1 ] = var_0 [ var_2 ] ;
      }
    }
    return var_1 + 1 ;
  }
  