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.
You just need to search list sclicing properties and you will get the idea. Also arr=sorted will give you the sorted array from higest to lowest value. so that you can remeove the first element and print the second one which is the runner-up or second-higest.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Find the Runner-Up Score!
You are viewing a single comment's thread. Return to all comments →
You just need to search list sclicing properties and you will get the idea. Also arr=sorted will give you the sorted array from higest to lowest value. so that you can remeove the first element and print the second one which is the runner-up or second-higest.