2018年10月12日
摘要: #include <iostream>#include <iomanip>using namespace std;#define NARRAY 8 // array size #define NBUCKET 5 // bucket size #define INTERVAL 10 // bucket 阅读全文
posted @ 2018-10-12 14:53 Rakint 阅读(120) 评论(0) 推荐(0)
摘要: #include<iostream>#include<vector>#include<algorithm>using namespace std;int rand_select(int Arr[], int p, int q,int i);int partition(int Arr[], int p 阅读全文
posted @ 2018-10-12 13:45 Rakint 阅读(218) 评论(0) 推荐(0)
摘要: #include<iostream>#include<vector>#include<algorithm>using namespace std;int main(){ int arr[10] = { 0,9,4,7,7,5,6,2,2,1 };//元素值都在arr的arr.size-1内!!本例元 阅读全文
posted @ 2018-10-12 12:11 Rakint 阅读(96) 评论(0) 推荐(0)