Skip to content

Commit 30b8b91

Browse files
refactor 506
1 parent 0089697 commit 30b8b91

File tree

1 file changed

+0
-16
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+0
-16
lines changed

src/main/java/com/fishercoder/solutions/_506.java

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,6 @@
44
import java.util.HashMap;
55
import java.util.Map;
66

7-
/**
8-
* 506. Relative Ranks
9-
*
10-
* Given scores of N athletes, find their relative ranks and the people with the top three highest scores,
11-
* who will be awarded medals: "Gold Medal", "Silver Medal" and "Bronze Medal".
12-
13-
Example 1:
14-
Input: [5, 4, 3, 2, 1]
15-
Output: ["Gold Medal", "Silver Medal", "Bronze Medal", "4", "5"]
16-
Explanation: The first three athletes got the top three highest scores, so they got "Gold Medal", "Silver Medal" and "Bronze Medal".
17-
For the left two athletes, you just need to output their relative ranks according to their scores.
18-
19-
Note:
20-
N is a positive integer and won't exceed 10,000.
21-
All the scores of athletes are guaranteed to be unique.
22-
*/
237
public class _506 {
248

259
public static class Solution1 {

0 commit comments

Comments
 (0)