<garvit244>75_1.py
def sortColors( nums):
    zero, last = 0, len(nums)-1
    index = 0
    while  index <= last:
        if nums[index] == 1:
            index += 1
        elif nums[index] == 0:
            nums[index], nums[zero] = nums[zero], nums[index]
            index += 1
            zero += 1
        elif nums[index] == 2:
            nums[last], nums[index] = nums[index], nums[last]
            last -= 1
def sample_funcname ( var_0 ) :
    var_2 , var_5 = 0 , len ( var_0 ) - 1
    var_6 = 0
    while var_6 <= var_5 :
        if var_0 [ var_6 ] == 1 :
            var_6 += 1
        elif var_0 [ var_6 ] == 0 :
            var_0 [ var_6 ] , var_0 [ var_2 ] = var_0 [ var_2 ] , var_0 [ var_6 ]
            var_6 += 1
            var_2 += 1
        elif var_0 [ var_6 ] == 2 :
            var_0 [ var_5 ] , var_0 [ var_6 ] = var_0 [ var_6 ] , var_0 [ var_5 ]
            var_5 -= 1
