问题:https://leetcode.com/problems/relative-ranks/?tab=Description Given scores of N athletes, find their relative ranks and the people with the top three highest scores, who will be awarded medals: “G
想到了map进行排序,当没想到treemap和r[value]。 class Solution {public String[] findRelativeRanks(int[] nums) {int n = nums.length;String[] r = new String[n];Map<Integer, Integer> map = new TreeMap<>();for (int i =
mac电脑在启动小皮Apache 时报以下错误信息 httpd: Syntax error on line 506 of /Applications/phpstudy/Extensions/Apache2.4.41/conf/httpd.conf: Cannot load modules/mod_log_rotate.so into server: dlopen(/Applications/