268. 丢失的数字 Code class Solution: def missingNumber(self, nums: List[int]) -> int: length = len(nums) nums.sort() for i in range(length): if nums[i] != i: return i return length