Search
⌘K

Leetcode 178. Rank Scores

Given a table of floating-point game scores, assign a dense rank to each score sorted from highest to lowest so tied scores share the same rank and the next rank is the next integer (no gaps). Return the score and its rank ordered by score descending.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.