Skip to content

Commit 2d2534a

Browse files
author
andyWqh
committed
新增改进冒泡排序
1 parent f7fd56f commit 2d2534a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

OrderAlgorithrmFiles/BubbleSort.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,14 @@ function createNodeSort(size) {
5757
}
5858
return array;
5959
}
60+
6061
//测试冒泡排序
6162
$(function () {
6263
var array = createNodeSort();
6364
console.log(array.print());
6465
//排序
65-
//array.bubleSort();
66+
array.bubleSort();
67+
//改进冒泡排序
6668
array.modifyBubleSort();
6769
//排序后的值
6870
console.log(array.print());

0 commit comments

Comments
 (0)