parameters: (self, nums)
docstring: :type nums: List[int]
          :rtype: void Do not return anything, modify nums in-place instead.
docstring_summary: :type nums: List[int]
          :rtype: void Do not return anything, modify nums in-place instead.
docstring_tokens: : type nums : List [ int ] : rtype : void Do not return anything modify nums in - place instead .
function: def sortColors(self, nums):
          """
          :type nums: List[int]
          :rtype: void Do not return anything, modify nums in-place instead.
          """
          i, j, k = 0, 0, len(nums)-1
          while j <= k:
              if nums[j] == 0:
                  nums[j], nums[i] = nums[i], nums[j]
                  i += 1
                  j += 1
              elif nums[j] == 2:
                  nums[j], nums[k] = nums[k], nums[j]
                  k -= 1
              else:
                  j += 1
function_tokens: def sortColors ( self , nums ) : i , j , k = 0 , 0 , len ( nums ) - 1 while j <= k : if nums [ j ] == 0 : nums [ j ] , nums [ i ] = nums [ i ] , nums [ j ] i += 1 j += 1 elif nums [ j ] == 2 : nums [ j ] , nums [ k ] = nums [ k ] , nums [ j ] k -= 1 else : j += 1