Skip to content

Commit

Permalink
Update time_complexity.md
Browse files Browse the repository at this point in the history
  • Loading branch information
krahets authored Jan 10, 2023
1 parent 51e5212 commit 4839256
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/chapter_computational_complexity/time_complexity.md
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 4839256

Please sign in to comment.