Question:codility Lesson3 PermMissingElem
My answer:
def solution(A):
length = len(A)
return (1 + length + 1) * length / 2 - sum(A)
Question:codility Lesson3 PermMissingElem
My answer:
def solution(A):
length = len(A)
return (1 + length + 1) * length / 2 - sum(A)