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.
I have a few doubts. Why did you assume that the first element of the list would be the second highest. If two people would have the same lowest scores, this would fail to work. Second, why did you create a list, convert it to a set and then back to list again. You could have directly created a list and then sort that.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Nested Lists
You are viewing a single comment's thread. Return to all comments →
I have a few doubts. Why did you assume that the first element of the list would be the second highest. If two people would have the same lowest scores, this would fail to work. Second, why did you create a list, convert it to a set and then back to list again. You could have directly created a list and then sort that.