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

修改错别字 #618

Merged
merged 1 commit into from Nov 24, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion basic/sorting/BubbleSort/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

定义一个布尔变量 `hasChange`,用来标记每轮是否进行了交换。在每轮遍历开始时,将 `hasChange` 设置为 false。

若当轮没有发生交换,说明此时数组已经按照升序排列,`hashChange` 依然是为 false。此时外层循环直接退出,排序结束。
若当轮没有发生交换,说明此时数组已经按照升序排列,`hasChange` 依然是为 false。此时外层循环直接退出,排序结束。

## 代码示例

Expand Down