def solution(A): return [value for value in range(min(A),max(A)) if value not in A]
def solution(A): a = set(A) for i, _ in enumerate(A, 1): if i in a: continue return i solution(A) # 3