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.
Youtube Channel partner: CodingCart
Mentor: Satyendra Jaiswal
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])
This post is in partner with CodingCart.