[Solution]506. Relative Ranks
Dec 21, 2022 · 2 min read · Problem
Problem_Link
Solutions (time, space)
O(n), O(n)
public class Solution {
public String[] findRelativeRanks(int[] nums) {
Integer[] index = new Integer[nums.length];
String[] result = new String[nums.length];
for (i...