-
Notifications
You must be signed in to change notification settings - Fork 194
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
插入排序 #107
Comments
作者你好,想问这里if的作用是什么?是否可以省略?因为去掉if不影响测试结果,代码如下:
|
没错:
这个是可以去掉的,没有任何影响。下面的 for 循环会找到这个数的位置,然后插进去。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://hunterhug.github.io/goa.c/#/algorithm/sort/insert_sort
Description
The text was updated successfully, but these errors were encountered: