📅  最后修改于: 2022-03-11 14:46:36.946000             🧑  作者: Mango
def getMissingNo(A):
n = len(A)
total = (n + 1)*(n + 2)/2
sum_of_A = sum(A)
return total - sum_of_A
A = [1, 2, 4, 5, 6]
miss = getMissingNo(A)
print(miss)
## Good luck with your Interview!!!! :)