<awangdev>26.Remove Duplicates from Sorted Array_1.java
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; 
    }
public int sample_funcname ( int [ ] var_0 ) {
  if ( var_0 == null || var_0 . length == 0 ) {
    return 0 ;
  }
  int var_4 = 0 ;
  for ( int var_6 = 1 ;
  var_6 < var_0 . length ;
  var_6 ++ ) {
    if ( var_0 [ var_6 ] != var_0 [ var_4 ] ) {
      var_0 [ ++ var_4 ] = var_0 [ var_6 ] ;
    }
  }
  return var_4 + 1 ;
}
