Update bubble sort and insertion sort.

This commit is contained in:
krahets
2023-05-23 21:20:14 +08:00
parent abecea9ab6
commit eb8df49993
17 changed files with 60 additions and 57 deletions
+1 -1
View File
@@ -119,7 +119,7 @@
## 算法流程
1. 首先,对原数组执行一次「哨兵划分」,得到排序的左子数组和右子数组;
1. 首先,对原数组执行一次「哨兵划分」,得到排序的左子数组和右子数组;
2. 然后,对左子数组和右子数组分别递归执行「哨兵划分」;
3. 持续递归,直至子数组长度为 1 时终止,从而完成整个数组的排序;