摘要: #include "iostream.h"using namespace std;int findMedian(int *A,int left,int right){ int center = (left+right)/2; if(A[left]>A[center]){ swap(A[left],... 阅读全文
posted @ 2014-12-05 19:53 bingtel 阅读(410) 评论(0) 推荐(0) 编辑
摘要: 快速排序#include "iostream.h"using namespace std;int findMedian(int *A,int left,int right){ int center = (left+right)/2; if(A[left]>A[center]){ swap(A[le... 阅读全文
posted @ 2014-12-05 19:03 bingtel 阅读(116) 评论(0) 推荐(0) 编辑