会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
迷途的猫
博客园
首页
新随笔
新文章
联系
订阅
管理
2012年10月17日
F#基础算法——插入排序
摘要: View Code 1 let insertSort (num: int array)=2 for i=1 to num.Length-1 do3 let mutable temp=num.[i]4 for j=i-1 to 0 do5 if num.[j]>temp then6 num.[j+1]<-num.[j]7 num.[j+1]<-temp
阅读全文
posted @ 2012-10-17 17:39 Jeallyn
阅读(304)
评论(0)
推荐(0)
编辑