修改排序算法代码

This commit is contained in:
huihut
2018-04-16 13:38:05 +08:00
parent fd5ba9d077
commit 91d24f13d0
6 changed files with 11 additions and 3 deletions

View File

@@ -1,3 +1,4 @@
// 希尔排序每一轮按照事先决定的间隔进行插入排序间隔会依次缩小最后一次一定要是1。
template<typename T>
void shell_sort(T array[], int length) {
int h = 1;