View Code
1     let insertSort (num: int array)=
2         for i=1 to num.Length-1 do
3             let mutable temp=num.[i]
4             for j=i-1 to 0 do
5                 if num.[j]>temp then
6                     num.[j+1]<-num.[j]
7                 num.[j+1]<-temp   

 

相关文章:

  • 2021-10-08
  • 2021-09-23
  • 2022-12-23
  • 2021-07-20
  • 2019-02-24
  • 2020-04-09
  • 2021-07-01
  • 2022-01-29
猜你喜欢
  • 2021-11-13
  • 2021-06-17
  • 2022-12-23
  • 2021-11-07
  • 2021-10-25
  • 2021-08-02
  • 2021-04-08
相关资源
相似解决方案