【leetcode】删除某些元素后的数组均值
2021-03-19 09:26
标签:return rsize i++ 删除 ble oid ret ++ code 【leetcode】删除某些元素后的数组均值 标签:return rsize i++ 删除 ble oid ret ++ code 原文地址:https://www.cnblogs.com/ganxiang/p/13947795.htmlint cmp(const void* a,const void* b){
return *(int*)a-*(int*)b;
}
double trimMean(int* arr, int arrSize){
qsort(arr,arrSize,sizeof(int),cmp);
int num=arrSize/20,i;
double sum=0.0;
for (i=num; i
下一篇:冒泡排序(C、Python)
文章标题:【leetcode】删除某些元素后的数组均值
文章链接:http://soscw.com/index.php/essay/66182.html