链接:https://leetcode.cn/problems/house-robber-ii/solutions/1097624/geng-wei-jian-ji-de-golang-ban-ben-by-hz-6fdl/ 五、无序数组第k大 #include <iostream>#include<cstring>using namespace std;intfunc(int*arr,intl,intr,intk) {if(k-1< l || k-1>r) {return-1; }intp =l;intkey =...