伪代码基本规范

插入排序的伪代码web for j=2 to A.length key=A[j] //Insert A[j]into the sorted sequence A[1..j-1] i=j-1 while i>0 and A[j]>key A[i+1]=A[i] i=i-1 A[i+1}=key 缩进表示块结构,好比上面这个伪代码
相关文章
相关标签/搜索