GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Update 058.cpp · hfl15/algorithm@ee369bb

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • sword_offer/src
    • 058.cpp
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎sword_offer/src/058.cpp‎

Copy file name to clipboardExpand all lines: sword_offer/src/058.cpp
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
方法:
1111
冒泡排序的思想:每次迭代将一个偶数下沉到恰当的位置(注意:只要遇到偶数在前奇数在后的情况才需要交换)
1212
空间换时间:需要一个额外的数据,直接将数字移到恰当的位置。
13+
注意:牛客网中的题目加了一个要求 “偶数和偶数之间的相对位置不变”,因此原书中使用两个指针的思路不可行。
1314
*/
1415

1516
#include <iostream>
@@ -67,4 +68,4 @@ class Solution{
6768
int main()
6869
{
6970
return 0;
70-
}
71+
}

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.