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.
Climbing the Leaderboard
Climbing the Leaderboard
Sort by
recency
|
2273 Discussions
|
Please Login in order to post a comment
C#
vector climbingLeaderboard(vector ranked, vector player) { int n = player.size(); vectorrank; auto it = unique(ranked.begin(),ranked.end()); ranked.erase(it,ranked.end());
}**
SOLUTION IN C++
-> Remove duplicate elements from the array. -> Use binary search to get the new rank.
// java easy understandable Code
public static List climbingLeaderboard(List ranked, List player) { // Write your code here List list = new ArrayList<>(); // answer storage
*JAVA SOLUTION 100% PASS ALL TESTS http*
https://github.com/DanSonnyk/leetcode/blob/master/src/hackerrank/ClimbingTheLeaderboard.java
Fallow me!