Created
August 15, 2021 08:46
-
-
Save r14152/a433ee9e17540d9f3e64ef285195b49b to your computer and use it in GitHub Desktop.
find the runner up hackerank solution
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
| if __name__ == '__main__': | |
| n = int(input()) | |
| arr = map(int, input().split()) | |
| print(sorted(set(arr))[-2]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment