Skip to content

Instantly share code, notes, and snippets.

@austintraver
Created January 5, 2022 23:57
Show Gist options
  • Save austintraver/56812ef3f97464df10c31ac303e11b1e to your computer and use it in GitHub Desktop.
Save austintraver/56812ef3f97464df10c31ac303e11b1e to your computer and use it in GitHub Desktop.
A = [1, 3, 6, 4, 1, 2]
s = set(A)
i = 1
while True:
if i not in s:
return i
else:
i += 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment