We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
used to find second highest value,
[1,3,2,5,6,6]
ans = 5
this is from FIND THE RUNNER UP SCORE.
I know i can iterate through loop n find the second highest score.
TEST 1 n 4 fails. Any idea?
Find the Runner-Up Score!
You are viewing a single comment's thread. Return to all comments →
print(tuple(set(arr))[-2])