伪代码:
for i=2 to n min=A[i-1] for j=i-1 to n if A[j]<min min=A[j] A[i-1]=min
posted on 2015-08-05 21:56 一动不动的葱头 阅读(147) 评论(0) 编辑 收藏 举报