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.
Correct me if I am worng, I think this solution works only when the first element in the player is less than last element of ranked array. Remaining elements of player array sholud be greater than the least element of ranked array.
For example:
if ranked= [100 90 90 80 75 60] and player = [50 55 65 77 90 102] it doesnt satisfy.
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 →
Correct me if I am worng, I think this solution works only when the first element in the player is less than last element of ranked array. Remaining elements of player array sholud be greater than the least element of ranked array. For example: if ranked= [100 90 90 80 75 60] and player = [50 55 65 77 90 102] it doesnt satisfy.