摘要: 摘要 堆排序和快速排序的复杂度都是nlongn; 代码 include using namespace std; int n,h[1000]; void swap(int x,int y){ int k; k=h[x]; h[x]=h[y]; h[y]=k; } void siftdown(int 阅读全文
posted @ 2018-10-09 10:36 ChunhaoMo 阅读(103) 评论(0) 推荐(0) 编辑