diff --git a/docs/chapter_computational_complexity/time_complexity.md b/docs/chapter_computational_complexity/time_complexity.md index ba11f0272..bc8be8913 100644 --- a/docs/chapter_computational_complexity/time_complexity.md +++ b/docs/chapter_computational_complexity/time_complexity.md @@ -908,7 +908,7 @@ $$ ```go title="time_complexity.go" /* 平方阶(冒泡排序) */ func bubbleSort(nums []int) int { - count := 0 // 计数器 + count := 0 // 计数器 // 外循环:待排序元素数量为 n-1, n-2, ..., 1 for i := len(nums) - 1; i > 0; i-- { // 内循环:冒泡操作