class Solution { public String[] findRelativeRanks(int[] nums) { String [] result = new String[nums.length]; if(nums.length == 0) return result; int [] temp = new int[nums.length]; HashMap map = new HashMap<>(); System.arraycopy(nums, 0, temp, 0, nums.length); Arrays.sort(temp); for(int i=0; i