hacker rank python(find the Runner-up Score!)solution

Find the Runner-up Score


n= int(input())
arr = input().split()
arr1 = map(int, arr)
arr1=set(list(arr1))
arr1=sorted(arr1)
print(arr1[-2])


Compiler Message
Success
Input (stdin)Download
5
2 3 6 6 5
Expected OutputDownload
5

Comments

Popular posts from this blog

Amazon Web Services

Google Code-In mentorship experience :)

Hacker Rank all java and python problem solutions