标签:color pre ... key 插入 blog bsp log sorted
INSERTION SORT;
fork code:
1 for j=2 to A.length 2 key=A.[j] 3 //Insert A[j] into the sorted 4 sequence A[1...j-1]. 5 i=j-1 6 while i>0 and A[i]>key 7 A[i+1]=key
c code:
标签:color pre ... key 插入 blog bsp log sorted
原文地址:http://www.cnblogs.com/xiaobaicai-123/p/6877559.html