堆排序
摘要://堆排序//①维护堆 void max_heapify(int *ptr,int index,int len){ index = index + 1; int left = index ptr[index - 1]) largest = left; if(righ...
阅读全文
posted @ 2014-08-26 10:40
posted @ 2014-08-26 10:40
posted @ 2014-08-25 20:32
posted @ 2014-08-25 19:04