An arcade game player wants to climb to the top of the leaderboard and track their ranking. The game uses Dense Ranking, so its leaderboard works like this:
- The player with the highest score is ranked 1 on the leaderboard.
- Players who have equal scores receive the same ranking number, and the next player(s) receive the immediately following ranking number.
URL: https://www.hackerrank.com/challenges/climbing-the-leaderboard/problem?isFullScreen=true
The C# solution can be found in cSharp/cSharp/Ranking.cs. Tests can be found in cSharp/cSharp.Tests/RankingTests.cs
The JS solution can be found in the js/index.js. JS Tests can be found in js/index.test.js.