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.
Your function will return second value even if there is none. For example in you are looking for second largest in the list [5,5,5] there is no second largest value.
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 →
Your function will return second value even if there is none. For example in you are looking for second largest in the list [5,5,5] there is no second largest value.