将数组复制一份,将原数组排序,循环未排序的数组,通过二分查找 找到在排序数组中的名次,然后进行判断,写进String数组
class Solution {
public String[] findRelativeRanks(int[] score) {
int len=score.length;
String[] result=new String[len];
int[] scoreCopy=score.clone();
Arrays.sort(score);
for(int i=0;i


