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 think does not work when we have something like [25, 5, 30, 10], but given the fact that the problem defines alice scroes on increasing order that should not be a problem, however I think it may fail when we have something like max_score_leader_board = Z and [5, 10, Z, Z+A, Z+B] acording to my calculus it should give for Z, Z+A and Z+B the rank 1
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 think does not work when we have something like [25, 5, 30, 10], but given the fact that the problem defines alice scroes on increasing order that should not be a problem, however I think it may fail when we have something like max_score_leader_board = Z and [5, 10, Z, Z+A, Z+B] acording to my calculus it should give for Z, Z+A and Z+B the rank 1