<doocs>0027.Remove Element_1.py
def removeElement( nums: List[int], val: int) -> int:
    cnt, n = 0, len(nums)
    for i in range(n):
        if nums[i] == val:
            cnt += 1
        else:
            nums[i - cnt] = nums[i]
    return n - cnt
def sample_funcname ( var_0 : List [ int ] , var_3 : int ) -> int :
    var_5 , var_7 = 0 , len ( var_0 )
    for var_9 in range ( var_7 ) :
        if var_0 [ var_9 ] == var_3 :
            var_5 += 1
        else :
            var_0 [ var_9 - var_5 ] = var_0 [ var_9 ]
    return var_7 - var_5
