parameters: (self, nums: List[int])
docstring: Do not return anything, modify nums in-place instead.
docstring_summary: Do not return anything, modify nums in-place instead.
docstring_tokens: Do not return anything modify nums in - place instead .
function: def sortColors(self, nums: List[int]) -> None:
          """
          Do not return anything, modify nums in-place instead.
          """
          i, j, k = 0, 0, 0
          for k in range(len(nums)):
              v = nums[k]
              nums[k] = 2
              if v < 2:
                  nums[j] = 1
                  j += 1
              if v < 1:
                  nums[i] = 0
                  i += 1
function_tokens: def sortColors ( self , nums : List [ int ] ) -> None : i , j , k = 0 , 0 , 0 for k in range ( len ( nums ) ) : v = nums [ k ] nums [ k ] = 2 if v < 2 : nums [ j ] = 1 j += 1 if v < 1 : nums [ i ] = 0 i += 1