Skip to content

Commit

Permalink
new file: hackerrank/python/hr-find-the-runnerup-score.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mpsb committed Feb 11, 2020
1 parent c18ff50 commit cff1148
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions hackerrank/python/hr-find-the-runnerup-score.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
if __name__ == '__main__':
n = int(input())
arr = map(int, input().split())
arr_list = list(arr)
max_v = max(arr_list)

print(max([i for i in arr_list if i != max_v]))

0 comments on commit cff1148

Please sign in to comment.