
分治
_TianZhirui
我比昨天更强???
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
快速排序
#include #include using namespace std; int a[]={93,27,30,2,8,12,2,8,30,89}; void swap(int &a,int &b){ int tmp=a; a=b; b=tmp; } void QuickSort(int a[],int s,int e) { if(s>=e) return ; int k=a原创 2017-07-11 20:43:54 · 203 阅读 · 0 评论 -
归并排序
#include #include using namespace std; int a[]={93,27,30,2,8,12,2,8,30,89}; void swap(int &a,int &b){ int tmp=a; a=b; b=tmp; } void QuickSort(int a[],int s,int e) { if(s>=e) return ; int k=a原创 2017-07-11 20:46:28 · 207 阅读 · 0 评论 -
输出逆序数
归并排序原创 2017-07-11 21:19:32 · 316 阅读 · 0 评论