摘要: heap的定义:如果数组a[1,....n]满足:a[i]>a[2*i]&&a[i]>a[2*i+1],1 2 #include 3 using namespace std; 4 int a[101]; 5 int array_size,heap_size; 6 int left(int i){ 7... 阅读全文
posted @ 2015-01-04 19:58 流白 阅读(3192) 评论(0) 推荐(0) 编辑