diff --git a/exampleSite/content/post/2024-04-20七大排序算法/index.zh-cn.md b/exampleSite/content/post/2024-04-20七大排序算法/index.zh-cn.md index 762f367..035542b 100644 --- a/exampleSite/content/post/2024-04-20七大排序算法/index.zh-cn.md +++ b/exampleSite/content/post/2024-04-20七大排序算法/index.zh-cn.md @@ -391,7 +391,7 @@ void sort_3(vector &arr) arr[j + 1] = arr[j]; // j+1这个位置被空出来了 j--; } - swap(key, arr[j + 1]); + swap(key, arr[j + 1]);//或者这arr[j+1]=key;也行 } }