class Solution(object):
    def missingNumber(self, nums):
        return (len(nums)*(len(nums)+1)/2)-sum(nums)

1962440108c400dc41e2ef6ea7e17f84f4363df0
<mask token>

class Solution(object):
    <mask token>

class Solution(object):

    def missingNumber(self, nums):
        return len(nums) * (len(nums) + 1) / 2 - sum(nums)

class Solution(object):
    def missingNumber(self, nums):
        return (len(nums)*(len(nums)+1)/2)-sum(nums)
