<doocs>0026.Remove Duplicates from Sorted Array_1.py
def removeDuplicates( nums: List[int]) -> int:
    i = 0
    for num in nums:
        if i < 1 or num != nums[i - 1]:
            nums[i] = num
            i += 1
    return i
def sample_funcname ( var_0 : List [ int ] ) -> int :
    var_4 = 0
    for var_5 in var_0 :
        if var_4 < 1 or var_5 != var_0 [ var_4 - 1 ] :
            var_0 [ var_4 ] = var_5
            var_4 += 1
    return var_4
