parameters: (self, nums)
return_statement: return lst[0]
docstring: :type nums: List[int]
          :rtype: int
docstring_summary: :type nums: List[int]
          :rtype: int
docstring_tokens: : type nums : List [ int ] : rtype : int
function: def firstMissingPositive(self, nums):
          """
          :type nums: List[int]
          :rtype: int
          """
          length = len(nums)
          if len(nums) == 0:
              return 1
          lst = range(1, length+2)
          for i in nums:
              if i > 0 and i < length+1 and i in lst:
                  lst.remove(i)
          return lst[0]
function_tokens: def firstMissingPositive ( self , nums ) : length = len ( nums ) if len ( nums ) == 0 : return 1 lst = range ( 1 , length + 2 ) for i in nums : if i > 0 and i < length + 1 and i in lst : lst . remove ( i ) return lst [ 0 ]