Search Your Question...!

Showing posts with label Climbing the Leaderboard. Show all posts
Showing posts with label Climbing the Leaderboard. Show all posts

Climbing the Leaderboard | Python Solution | HackerRank

 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 number  on the leaderboard.
  • Players who have equal scores receive the same ranking number, and the next player(s) receive the immediately following ranking number.

Example


The ranked players will have ranks , and , respectively. If the player's scores are  and , their rankings after each game are  and . Return .