I do not understand the problem statement


  • 0
    R

    Hello, I was wondering if anyone would be able to offer another explanation to this problem. As it is written, I am having trouble figuring out what the question is asking.

    I search through the array looking for the top 3 scores and then fix everyone else's rank relative to what?

    Thanks in advance!


  • 0

    Take the input [5,4,3,2,1]

    The highest score gets gold, second highest silver, third highest bronze.

    So:
    5 = gold (1st)
    4 = silver (2nd)
    3 = bronze (3rd)
    2 = 4th
    1 = 5th


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.