摘要:
#include<iostream>#include<algorithm>#include<ctime>#include<cstdlib>using namespace std;void maxHeap(int *a,int n,int i){ int left=i<<1,right=i<<1|1; if(left > n) return; int large=left; if(right <= n && a[right] > a[large]) large=right; if(a[i] 阅读全文
posted @ 2012-12-09 09:18
sumaoqing123
阅读(155)
评论(0)
推荐(0)

浙公网安备 33010602011771号