2020年5月21日

选择排序

摘要: func main(){ a := []int{1, 9, 2, 8, 3, 7, 4, 6, 5, 10} for i:=0;i<len(a)-1;i++{ max := i for j:=i+1;j<len(a);j++{ if a[j] > a[max]{ max = j } } a[i],a 阅读全文

posted @ 2020-05-21 09:11 thotf 阅读(87) 评论(0) 推荐(0)

导航