flysnow-org / comment

http://www.flysnow.org/ 博客的评论
http://www.flysnow.org/
1 stars 0 forks source link

2020/10/27/go-sort-algorithm #96

Open utterances-bot opened 3 years ago

utterances-bot commented 3 years ago

Go语言 | 几种常用的排序算法图文解析 | 飞雪无情的博客

Go语言 | 几种常用的排序算法图文解析

https://www.flysnow.org/2020/10/27/go-sort-algorithm.html

burn-engine commented 3 years ago

选择排序中line 9 : if j<len(n) 应改为 for j<len(n),否则无法计算出左侧的min_index

python95plus commented 3 years ago

选择排序有问题,var i = 1应该是var i = 0。if j < len(n) {应该是for j < len(n) {