摘要:
1 void HeapSort(int H[],int length) { 2 BuildingHeap(H,length); 3 for (int i=length-1;i>0;--i) { 4 int temp=H[i];H[i]=H[0];H[0]=temp... 阅读全文
摘要:
1 Node *list_reverse(Node *head) { 2 if(NULL == head) { 3 return NULL; 4 } 5 Node *prev,*curr,*reverse_head,*temp; 6 prev=NU... 阅读全文