Skip to content

Instantly share code, notes, and snippets.

@5minho
Created May 6, 2018 16:30
Show Gist options
  • Save 5minho/4893f915ba740faffce1966c1ecf5d09 to your computer and use it in GitHub Desktop.
Save 5minho/4893f915ba740faffce1966c1ecf5d09 to your computer and use it in GitHub Desktop.
Codility PermMissingElem
def solution(A):
appear_set = set(range(1, len(A) + 2))
return (appear_set - set(A)).pop()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment