Skip to content

Commit dcd4745

Browse files
AnHongpenghustcc
authored andcommitted
fix 2.selectionSort.md (hustcc#10)
* fix bubbleSort.md * fix 2.selectionSort.md 使用选择排序,待排序队列中的相同元素可能在排序后位置互换,因此选择排序是不稳定排序。这里的“是表现最稳定的排序算法之一”有歧义
1 parent b8c5e86 commit dcd4745

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

2.selectionSort.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# 选择排序
22

3-
选择排序是一种简单直观的排序算法,是表现最稳定的排序算法之一,因为无论什么数据进去都是 O(n²) 的时间复杂度。所以用到它的时候,数据规模越小越好。唯一的好处可能就是不占用额外的内存空间了吧。
3+
选择排序是一种简单直观的排序算法,无论什么数据进去都是 O(n²) 的时间复杂度。所以用到它的时候,数据规模越小越好。唯一的好处可能就是不占用额外的内存空间了吧。
44

55

66
## 1. 算法步骤

0 commit comments

Comments
 (0)