Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
utterances-bot opened this issue Dec 31, 2020 · 2 comments
Open

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

utterances-bot opened this issue Dec 31, 2020 · 2 comments

Comments

@utterances-bot
Copy link

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

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

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

Copy link

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

Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants