2017年2月27日

快速排序

摘要: #include #include #include using namespace std; int a[10]={2,1,5,9,8,7,6,4,3,10}; void Swap(int i,int j) { int x=a[i]; a[i]=a[j]; a[j]=x; return ; } int Partition(int p,int r) { ... 阅读全文

posted @ 2017-02-27 20:48 远搏 阅读(92) 评论(0) 推荐(0)

导航