Skip to content

Commit b4c773b

Browse files
committed
update bubble sort
1 parent 86b717b commit b4c773b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sorts/bubble_sort/readme.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
![冒泡排序算法](./img/Bubble_sort_animation.gif)
1818

19+
从图中可以看到,冒泡只有最上面的会保证顺序排列,剩下是逐渐(向有序)“靠拢”的过程。
20+
1921
## 复杂度
2022

2123
平均时间复杂度:`O(n^2)`

0 commit comments

Comments
 (0)