You are given an integer array score of size n, where score[i] represents the score of the
The athletes are awarded ranks based on their scores, where the athlete with the highest score receives the
The placement ranks are decided as follows:
The "Gold Medal".
The "Silver Medal".
The "Bronze Medal".
For the "$x$" for the
Return an array answer of size n where answer[i] is the rank of the
Constraints:
n == score.length
n
score[i]
All the values in score are unique.
You are given an integer array score of size n, where score[i] represents the score of the
The athletes are awarded ranks based on their scores, where the athlete with the highest score receives the
The placement ranks are decided as follows:
The "Gold Medal".
The "Silver Medal".
The "Bronze Medal".
For the "$x$" for the
Return an array answer of size n where answer[i] is the rank of the
Constraints:
n == score.length
n
score[i]
All the values in score are unique.