Skip to content

Instantly share code, notes, and snippets.

@ShinJJang
Created January 10, 2020 09:42
Show Gist options
  • Save ShinJJang/04f25e2ad2389637b35ebb72dd21d033 to your computer and use it in GitHub Desktop.
Save ShinJJang/04f25e2ad2389637b35ebb72dd21d033 to your computer and use it in GitHub Desktop.
def solution(A):
check_list = [False] * (len(A) + 1)
for i in A:
check_list[i-1] = True
for idx, j in enumerate(check_list):
if not j:
return idx + 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment