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.
Why are we assuming that list[1] is the second lowest score.....
What happens when list contains [3.2,3.2,4.4,4.4]...
In this case the second lowest should be list[2] and not list[1]
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 →
Why are we assuming that list[1] is the second lowest score..... What happens when list contains [3.2,3.2,4.4,4.4]... In this case the second lowest should be list[2] and not list[1]