Created
June 8, 2018 13:43
-
-
Save acwoss/ca8c59227400c71e47209a9d777548fb to your computer and use it in GitHub Desktop.
WellinformedWordyObservatory created by acwoss - https://repl.it/@acwoss/WellinformedWordyObservatory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def solution(A, N) -> int: | |
i = 1 | |
while True: | |
if i not in A: | |
return i | |
i += 1 | |
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