comefrom: <doocs>0075.Sort Colors_1.py
code: def sortColors( nums: List[int]) -> None:
      i, j = -1, len(nums)
      cur = 0
      while cur < j:
          if nums[cur] == 0:
              i += 1
              nums[cur], nums[i] = nums[i], nums[cur]
              cur += 1
          elif nums[cur] == 1:
              cur += 1
          else:
              j -= 1
              nums[cur], nums[j] = nums[j], nums[cur]
masked: def sample_funcname ( var_0 : List [ int ] ) -> None :
      var_5 , var_7 = - 1 , len ( var_0 )
      var_9 = 0
      while var_9 < var_7 :
          if var_0 [ var_9 ] == 0 :
              var_5 += 1
              var_0 [ var_9 ] , var_0 [ var_5 ] = var_0 [ var_5 ] , var_0 [ var_9 ]
              var_9 += 1
          elif var_0 [ var_9 ] == 1 :
              var_9 += 1
          else :
              var_7 -= 1
              var_0 [ var_9 ] , var_0 [ var_7 ] = var_0 [ var_7 ] , var_0 [ var_9 ]
  