We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0ad06e commit cca5208Copy full SHA for cca5208
Basic Data Types/Find the Runner-Up Score.py
@@ -0,0 +1,8 @@
1
+# Find the Runner-Up Score!
2
+# https://www.hackerrank.com/challenges/find-second-maximum-number-in-a-list/problem
3
+
4
5
+if __name__ == '__main__':
6
+ n = int(input())
7
+ arr = map(int, input().split())
8
+ print(sorted(list(set(arr)), reverse=True)[1])
0 commit comments