Find the Runner-Up Score! HackerRank Solution:Looking for Find the Runner-Up Score! solution for Hackerrank problem? Get solution with source code and detailed explainer video

Given the participants’ score sheet for your University Sports Day, you are required to find the runner-up score. You are given scores. Store them in a list and find the score of the runner-up.
Go to problem statement.

Explanation Video:

Youtube Channel partner: CodingCart
Mentor: Satyendra Jaiswal
Langauge: Python

Source Code: Find the Runner-Up Score!


n = int(input())
arr =list(map(int, input().split()))
arr.sort()
print(arr[(arr.index(max(arr)))-1])
 
coming soon…
coming soon…

Like this article? Follow us on Facebook and LinkedIn. You can also subscribe to our Youtube Channel.

This post is in partner with CodingCart.