摘要:
1.插入排序:1.1直接插入:1.1.1顺序存储voidInsertSorting(intR[],intn){for(inti=1;i<n;i++){inttemp=R[i];intj=i-1;while((j>=0)&&(temp<R[j])){R[j+1]=R[i];j--;}R[j+1]=temp;}}1.1.2链式存储voidInsertSorting(L... 阅读全文
posted @ 2005-06-28 08:28
天外飞仙
阅读(1148)
评论(1)
推荐(0)