mirror of
https://github.com/krahets/hello-algo.git
synced 2025-01-23 22:40:25 +08:00
Update time_complexity.md
This commit is contained in:
parent
51e52121dc
commit
483925686f
@ -1434,7 +1434,7 @@ $$
|
||||
for (int i = n - 1; i > 0; i--) {
|
||||
// 内循环:冒泡操作
|
||||
for (int j = 0; j < i; j++) {
|
||||
if (nums[j] > nums [j+1])
|
||||
if (nums[j] > nums [j + 1])
|
||||
{
|
||||
// 交换 nums[j] 与 nums[j + 1]
|
||||
int tmp = nums[j];
|
||||
|
Loading…
Reference in New Issue
Block a user