class Solution(object):
def getMissingNumber(self, nums):
“”“
:type nums: List[int]
:rtype: int
“”“
if nums==[]:
return 0
for i in range(len(nums)):
if nums[i]!=i:
return i
return i+1