Created
July 16, 2018 07:40
-
-
Save rexlow/a33b915f1f7472fa40d91623e999523b to your computer and use it in GitHub Desktop.
Hackerrank The Captain's Room Challenge
This file contains hidden or 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
from collections import Counter | |
a, b = int(input()), list(map(int, input().split())) | |
d = dict(Counter(b)) | |
print(min(d, key=lambda k: d[k])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment