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.
Because what would happen if I've got players [5, 25, 50, 100, 120]?
What is suppose to do with 120 and 100 scores? 100 = the first place? and what about 120? th
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Climbing the Leaderboard
You are viewing a single comment's thread. Return to all comments →
I'm a bit confused, it doesn't make sense for me the samples: ranked: [100, 100, 50, 40, 40, 20, 10] players: [5, 25, 50, 120];
// Expected Output: [6, 4, 2, 1] // My Output: [8, 3, 5, 1]
Because what would happen if I've got players [5, 25, 50, 100, 120]? What is suppose to do with 120 and 100 scores? 100 = the first place? and what about 120? th