Код: Выделить всё
class Solution(object):
def missingNumber(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
l = len(nums)
actualSum = (l(l+1)/2)
for i in l:
sum1 += nums[i]
return(actualSum-sum1)
Код: Выделить всё
TypeError: 'int' object is not callable
actualSum = (l(l+1)/2)
Подробнее здесь: https://stackoverflow.com/questions/798 ... t-callable
Мобильная версия