Skip to content

Instantly share code, notes, and snippets.

@acwoss
Created June 8, 2018 13:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save acwoss/7f923c56f5768f77ad401f073b4c7650 to your computer and use it in GitHub Desktop.
Save acwoss/7f923c56f5768f77ad401f073b4c7650 to your computer and use it in GitHub Desktop.
TintedScrawnyClicks created by acwoss - https://repl.it/@acwoss/TintedScrawnyClicks
from itertools import count
def solution(A, N) -> int:
for i in count(1):
if i not in A:
return i
assert solution([1, 3, 6, 4, 1, 2], 6) == 5
assert solution([1, 2, 3], 3) == 4
assert solution([-1, -3], 2) == 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment